diff --git a/Startcode/stack.h b/Startcode/stack.h index f7d542d..79ec753 100644 --- a/Startcode/stack.h +++ b/Startcode/stack.h @@ -9,6 +9,15 @@ The latest element is taken from the stack. */ //TODO: passenden Datentyp als struct anlegen +//typedef int Node; + +typedef struct { + int value; + StackNode* next; + StackNode* prev; + +}StackNode; + // Pushes data as pointer onto the stack. StackNode *push(StackNode *stack, void *data);