From 8cdc006a6b0e0c42e986517530230785b8ab50c6 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Thu, 19 Nov 2026 14:30:33 +0100 Subject: [PATCH] struktur StackNode --- Startcode/stack.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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);