diff --git a/stack/stack.c b/stack/stack.c index 02f8e00..7d22fd2 100644 --- a/stack/stack.c +++ b/stack/stack.c @@ -9,6 +9,13 @@ #include "stack_expand.h" int main(int argc, char **argv){ - + Stack *t_stack = initStack(); + for(int i = 0; i < 10; i++){ + pushStack(t_stack, snodeWithInt(i)); + } + for(int i = 0; i < 10; i++){ + printf("%d",getValueByIntForSNode(popStack(t_stack))); + } + releaseStack(t_stack); return 0; }