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