forked from freudenreichan/info2Praktikum-DobleSpiel
struktur StackNode
This commit is contained in:
1 parent
027a7e1bec
commit
8cdc006a6b
1 file changed
+9
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user