学生管理系统stuSystem函数

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();
}

posted @ 2019-06-18 11:23  18软件工程五班陈星星  阅读(307)  评论(0编辑  收藏  举报