StackNode strcut definiert

This commit is contained in:
silvana884
2025-12-03 11:13:06 +01:00
parent 1536413888
commit fc5f249554
3 changed files with 6 additions and 0 deletions
BIN
View File
Binary file not shown.
+1
View File
@@ -1 +1,2 @@
Silvana;9944
player1;3999 player1;3999
+5
View File
@@ -8,6 +8,11 @@ The latest element is taken from the stack. */
#include <stdlib.h> #include <stdlib.h>
//TODO: passenden Datentyp als struct anlegen //TODO: passenden Datentyp als struct anlegen
typedef{
int* data;
unsigned int *fol;
unsigned int *prev;
}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);