学生管理系统stuSystem函数

此博客展示了一个学生管理系统的C语言代码。该系统提供查找学生成绩、总分排序信息、查看全部信息、统计学生人数等功能,用户可通过主菜单选择操作,按Esc键退出程序。

void stuSystem()
{
struct student *head,*stu;
int lookup_num;
int Delete_num;
int Modify_num;
char ckey='a';
int istate=0;

do
{
system("cls"); //vc++清屏函数,包含在#include<stdlib.h>中
printf(" 欢迎进入学生管理系统!\n");
printf("*******************主菜单*****************\n");
printf("*\t\t1.查找学生成绩\t\t *\n");
printf("*\t\t2.总分排序信息\t\t *\n");
printf("*\t\t3.查看全部信息\t\t *\n");
printf("*\t\t4.统计学生人数\t\t *\n");
printf("*\t\t5.停止程序运行\t\t *\n");
printf("******************************************\n");

ckey=getch();
if(ckey=='1') //创建
{
system("cls");

head=mainFound(head);
head=order(head);
goon();
}
//else if((istate==0)&&(ckey!=Esc))
//{
// printf("\n\t错误:你必须先输入学生信息!!!");
//goon();
//}
else if(ckey=='2') ///显示
{
system("cls");
order(head);
Output(head);
goon();
}
else if(ckey=='3') //排序
{
system("cls");
Output(head);
goon();
}
else if(ckey=='4') //查找
{
system("cls");
printf("总人数为:%d\n",n);
goon();

}
else if(ckey =='5') //修改
{
system("cls");
return;
}

}
while(ckey!=Esc); //按键盘上的Esc键退出!!!
exit();
}

转载于:https://www.cnblogs.com/CoolClare/p/11044234.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值