/**
|
|
* Datei: pointStack.h
|
|
* Headerdatei fuer Stack Programm
|
|
*
|
|
* Rainer Hihn
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
/*
|
|
* structs
|
|
*/
|
|
|
|
/*
|
|
* struct fuer die Koordinaten
|
|
*/
|
|
struct point
|
|
{
|
|
float rX;
|
|
float rY;
|
|
float rZ;
|
|
};
|
|
typedef struct point POINT;
|
|
|
|
struct stackPoint
|
|
{
|
|
POINT p;
|
|
struct stackPoint *next;
|
|
};
|
|
typedef struct stackPoint STACK_POINT;
|
|
typedef STACK_POINT *STACK_POINT_PTR;
|
|
|
|
/*
|
|
* Funktionen
|
|
*/
|
|
void push(POINT pushPoint);
|
|
POINT pop();
|
|
int isEmpty();
|
|
void printStackElement(POINT aPoint);
|