This commit is contained in:
llz-long 2025-04-17 17:34:18 +08:00
parent 72d649b09f
commit 338e927cf8
3 changed files with 12 additions and 0 deletions

2
.gitignore vendored
View File

@ -51,3 +51,5 @@ Module.symvers
Mkfile.old
dkms.conf
/.vs/Project2
*.tlog
*.tlog

View File

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

View File

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