学生管理系统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();
}
轉載于:https://www.cnblogs.com/CoolClare/p/11044234.html
總結
以上是生活随笔為你收集整理的学生管理系统stuSystem函数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IE6的Bug: 绝对定位遇到浮动后消失
- 下一篇: PHP文件系统-文件上传类