原发布者:水瓶小鑫123
#include#include#include#include#defineN30#defineM3typedefstructstudent{charnumber[10];charname[20];floatscore[M];floataver;floattotal;}STU;STUstu[N];intn;voidinputscore(void);voidsavescore(void);voidavergescore(void);voidtotal(void);voidmodifyscore(void);voidlookscore(void);voidsearchscore(void);voidstatistic(void);voidadd(void);voidmodify(void);voiddelscore(void);voidmenu(void);voidmain(){shortintflag=0;menu();do{flag=1;switch(getch()){case'1':inputscore();break;/*输入成绩*/case'2':lookscore();break;/*查看成绩*/case'3':searchscore();break;/*查找成绩*/case'4':statistic();break;/*成绩统计*/case'5':modify();break;/*修改成绩*/case'6':add();break;/*添加成绩*/case'7':delscore();break;/*删除成绩*/case'8':savescore();break;/*保存成绩*/case'9':exit(0);break;/*退出程序*/default:printf("输入有误\n");}printf("按任意键继续\n");getch();menu();