You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
529 B

  1. /**
  2. * Datei: pointStack.h
  3. * Headerdatei fuer Stack Programm
  4. *
  5. * Rainer Hihn
  6. */
  7. #include <stdio.h>
  8. #include <stdlib.h>
  9. /*
  10. * structs
  11. */
  12. /*
  13. * struct fuer die Koordinaten
  14. */
  15. struct point
  16. {
  17. float rX;
  18. float rY;
  19. float rZ;
  20. };
  21. typedef struct point POINT;
  22. struct stackPoint
  23. {
  24. POINT p;
  25. struct stackPoint *next;
  26. };
  27. typedef struct stackPoint STACK_POINT;
  28. typedef STACK_POINT *STACK_POINT_PTR;
  29. /*
  30. * Funktionen
  31. */
  32. void push(POINT pushPoint);
  33. POINT pop();
  34. int isEmpty();
  35. void printStackElement(POINT aPoint);