📄 main.c
字号:
#include <stdio.h>
#include <stdlib.h>
#include "operate_lnode.h"
main()
{
int scan_switch,scan_max;
L_node *top=NULL;
while(1)
{
printf("\n1.输入栈\n");
printf("2.显示栈\n");
printf("3.取栈顶\n");
printf("选择操作码:");
scanf("%d",&scan_switch);
switch(scan_switch)
{
case 1:
{
printf("输入元素的个数:");
scanf("%d",&scan_max);
Insert_node(&top,scan_max);
}break;
case 2:Print_node(top);break;
case 3:Push_node(&top);break;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -