passenden Datentyp als struct angelegt
This commit is contained in:
parent
2abc429b82
commit
b5e67e8368
8
stack.h
8
stack.h
@ -9,6 +9,14 @@ The latest element is taken from the stack. */
|
|||||||
|
|
||||||
//TODO: passenden Datentyp als struct anlegen
|
//TODO: passenden Datentyp als struct anlegen
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct Node{
|
||||||
|
int data;
|
||||||
|
struct Node *next;
|
||||||
|
|
||||||
|
} StackNode;
|
||||||
|
|
||||||
|
|
||||||
// Pushes data as pointer onto the stack.
|
// Pushes data as pointer onto the stack.
|
||||||
StackNode *push(StackNode *stack, void *data);
|
StackNode *push(StackNode *stack, void *data);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user