stack.h
This commit is contained in:
parent
735195460c
commit
7051134256
@ -1,5 +1,9 @@
|
||||
Max02.12;19860
|
||||
max;19374
|
||||
Max02.12;11910
|
||||
kristin;9935
|
||||
Max02.12;7966
|
||||
player_name;7961
|
||||
max;5989
|
||||
Max02.12;4988
|
||||
player1;3999
|
||||
|
||||
9
stack.h
9
stack.h
@ -9,6 +9,15 @@ The latest element is taken from the stack. */
|
||||
|
||||
//TODO: passenden Datentyp als struct anlegen
|
||||
|
||||
typedef struct StackNode {
|
||||
|
||||
void *data;
|
||||
struct StackNode *next;
|
||||
|
||||
} StackNode;
|
||||
|
||||
StackNode *createNode(void *data);
|
||||
|
||||
// Pushes data as pointer onto the stack.
|
||||
StackNode *push(StackNode *stack, void *data);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user