up stsck
This commit is contained in:
parent
72d649b09f
commit
338e927cf8
2
.gitignore
vendored
2
.gitignore
vendored
@ -51,3 +51,5 @@ Module.symvers
|
||||
Mkfile.old
|
||||
dkms.conf
|
||||
/.vs/Project2
|
||||
*.tlog
|
||||
*.tlog
|
||||
|
@ -41,4 +41,12 @@ int pop_stack_linked(stack_linked* s)
|
||||
free(tmp);
|
||||
tmp = NULL;
|
||||
return flog;
|
||||
}
|
||||
void print_linked(stack_linked* s) {
|
||||
stack_node* L = s->top;
|
||||
while (L != NULL) {
|
||||
printf("%d", L->value);
|
||||
L = L->next;
|
||||
}
|
||||
printf("\n");
|
||||
}
|
@ -23,6 +23,8 @@ void push_stack_linked(stack_linked* s, elem_type value);
|
||||
|
||||
// 出栈
|
||||
int pop_stack_linked(stack_linked* s);
|
||||
//输出
|
||||
void print_linked(stack_linked* s);
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user