⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 数据结构课程设计报告,虽然好多地方都有
💻 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 + -