This commit is contained in:
Saturneic 2018-06-11 16:00:48 +08:00
parent a8525b639b
commit 785a6236fa

View File

@ -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;
}