refresh
This commit is contained in:
parent
e1bbef4fbe
commit
0691cb053f
@ -57,5 +57,12 @@ void destroy_stack (struct stack* s) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
struct stack* novystack = create_stack(STACK_SIZE);
|
||||||
|
push_stack(novystack, 3,14);
|
||||||
|
push_stack(novystack, 2.71);
|
||||||
|
float x = pop_stack(mystack);
|
||||||
|
printf("Popped: %2.f\n", x);
|
||||||
|
print_stack(mystack);
|
||||||
|
destroy_stack(novystack);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user