资源描述:
《学生成绩管理系统v4.0.docx》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、.//成绩管理系统v1.0//能动1302王清栋1306030217#include#include#defineN30#defineM6voidInput(longnum[],intscore[][M],intn,intm);voidTotalave(intscore[][M],intn,intm);voidevestuTotalave(intscore[][M],intn,intm,longnum[]);voidScoredes(longnum[],intscore[][M],intn,intm);voidScoreas(longnum[],in
2、tscore[][M],intn,intm);voidNumas(longnum[],intscore[][M],intn,intm);voidSearch(longnum[],intscore[][M],intn,intx,intm);voidstatistis(longnum[],intscore[][M],intn,intm);voidList(longnum[],intscore[][M],intn,intm);intmain(){intn,score[N][M],c,x,m;longnum[N];printf("输入学生人数");scanf("%d",&n);printf("输
3、入考试科目");word专业资料.scanf("%d",&m);printf("1.Inputrecord");printf("2.Caculatetotelandaveragescoreofeverycourse");printf("3.Caculatetotelandaveragescoreofeverystudent");printf("4.Sortindescendingorderbytotalscoreofeverystudent");printf("5.Sortinascendingorderbytotalscoreofeverystudent");pri
4、ntf("6.Sortinascendingorderbynumber");printf("7.Searchbynumber");printf("8.Statisticanalysisforeverycourse");printf("9.Listrecord");printf("0.Exit");printf("Pleaseenteryourchoice:");printf("");for(;;){scanf("%d",&c);switch(c){case1://录入学生学号和各科成绩Input(num,score,n,m);printf("Pleaseent
5、eryourchoice:");break;word专业资料.case2://计算每门课程的总分和平均分Totalave(score,n,m);printf("Pleaseenteryourchoice:");break;case3://计算每个学生的总分和平均分evestuTotalave(score,n,m,num);break;case4://按每个学生的总分由高到低排出名次表Scoredes(num,score,n,m);printf("Pleaseenteryourchoice:");break;case5://按每个学生的总分由低到高排出名次表Scoreas(nu
6、m,score,n,m);printf("Pleaseenteryourchoice:");break;case6://按学号由小到大排出名次表Numas(num,score,n,m);printf("Pleaseenteryourchoice:");break;case7://按学号查询学生排名及其各科成绩printf("请输入查找学号");scanf("%d",&x);word专业资料.Search(num,score,n,x,m);printf("Pleaseenteryourchoice:");break;case8://成绩分析所占百分比statistis(nu
7、m,score,n,m);printf("Pleaseenteryourchoice:");break;case9://全部输出List(num,score,n,m);Totalave(score,n,m);printf("Pleaseenteryourchoice:");break;case0:exit(0);}}return0;}voidInput(longnum[],intscore[][M],intn,intm)//