C语言大作业——学生成绩管理系统v2.0(8页).doc
《C语言大作业——学生成绩管理系统v2.0(8页).doc》由会员分享,可在线阅读,更多相关《C语言大作业——学生成绩管理系统v2.0(8页).doc(8页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、-C语言大作业学生成绩管理系统v2.0-第 8 页/成绩管理系统v2.0#include #include #define N 30void Input (long num,int score,int n);void Totalave (int score,int n);void Scoredes (long num,int score,int n,int (*compare)(int a,int b);int Ascending (int a,int b);void Numas (long num,int score,int n);void Search (long num,int scor
2、e,int n,int x);void statistis (long num,int score,int n);void List (long num,int score,int n);int main() int n,scoreN,c,x,i; long numN; printf(输入学生人数); scanf(%d,&n); printf(1.Input recordn); printf(2.Caculate totel and average score of coursen); printf(3.Sort in descending order by scoren); printf(4
3、.Sort in ascending order by numbern); printf(5.Search by numbern); printf(6.Statistic analysisn); printf(7.List recordn); printf(0.Exitn); printf(Please enter your choice:n); printf(n); for(;) scanf(%d,&c); switch(c) case 1: Input (num,score,n); printf(Please enter your choice:n); break; case 2: Tot
4、alave (score,n); printf(Please enter your choice:n); break; case 3: Scoredes (num,score,n,Ascending); for(i=0;in;i+) printf(ID:%10ld,score:%dn,numi,scorei);/以长整形打印用%ld printf(Please enter your choice:n); break; case 4: Numas (num,score,n); printf(Please enter your choice:n); break; case 5: printf(请输
5、入查找学号n); scanf(%d,&x); Search (num,score,n,x); printf(Please enter your choice:n); break; case 6: statistis (num,score,n); printf(Please enter your choice:n); break; case 7: List (num,score,n); Totalave (score,n); printf(Please enter your choice:n); break; case 0: exit(0); return 0;void Input (long
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 语言 作业 学生 成绩管理系统 v2
限制150内