学生管理系统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++清屏函數(shù),包含在#include<stdlib.h>中
printf(" 歡迎進入學生管理系統(tǒng)!\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ǒng)計學生人數(shù)\t\t *\n");
printf("*\t\t5.停止程序運行\(zhòng)t\t *\n");
printf("******************************************\n");
ckey=getch();
if(ckey=='1') //創(chuàng)建
{
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("總?cè)藬?shù)為:%d\n",n);
goon();
}
else if(ckey =='5') //修改
{
system("cls");
return;
}
}
while(ckey!=Esc); //按鍵盤上的Esc鍵退出!!!
exit();
}
轉(zhuǎn)載于:https://www.cnblogs.com/CoolClare/p/11044234.html
總結(jié)
以上是生活随笔為你收集整理的学生管理系统stuSystem函数的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: IE6的Bug: 绝对定位遇到浮动后消失
- 下一篇: Django权限系统auth模块详解