- 1、本文档共8页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
//成绩管理系统v1.0
// 能动1302 王清栋 1306030217
#include stdio.h
#include stdlib.h
#define N 30
#define M 6
void Input (long num[],int score[][M],int n,int m);
void Totalave (int score[][M],int n,int m);
void evestuTotalave (int score[][M],int n,int m,long num[]);
void Scoredes (long num[],int score[][M],int n,int m);
void Scoreas (long num[],int score[][M],int n,int m);
void Numas (long num[],int score[][M],int n,int m);
void Search (long num[],int score[][M],int n,int x,int m);
void statistis (long num[],int score[][M],int n,int m);
void List (long num[],int score[][M],int n,int m);
int main()
{
int n,score[N][M],c,x,m;
long num[N];
printf(输入学生人数);
scanf(%d,n);
printf(输入考试科目);
scanf(%d,m);
printf(1.Input record\n);
printf(2.Caculate totel and average score of every course\n);
printf(3.Caculate totel and average score of every student\n);
printf(4.Sort in descending order by total score of every student\n);
printf(5.Sort in ascending order by total score of every student\n);
printf(6.Sort in ascending order by number\n);
printf(7.Search by number\n);
printf(8.Statistic analysis for every course\n);
printf(9.List record\n);
printf(0.Exit\n);
printf(Please enter your choice:\n);
printf(\n);
for(;;)
{
scanf(%d,c);
switch(c)
{
case 1: //录入学生学号和各科成绩
Input (num,score,n,m);
printf(Please enter your choice:\n);
break;
case 2: //计算每门课程的总分和平均分
Totalave (score,n,m);
printf(Please enter your choice:\n);
break;
case 3: //计算每个学生的总分和平均分
evestuTotalave (score,n,m,num);
break;
case 4: //按每个学生的总分由高到低排出名次表
Scoredes (num,score,n,m);
printf(Please enter your choice:\n);
break;
case 5: //按每个学生的总分由低到高排出名次
您可能关注的文档
- 医患沟通心得(精选多篇).doc
- 医学三字经白话解.doc
- 医院的标识系统规划设计.doc
- 议论性优美段落.doc
- 因式分解方法大全.doc
- 印度速算方法大全.doc
- 英文缩写大全.doc
- 用FFT对信号作频谱分析报告.doc
- 语文听力材料.doc
- 元音字母发音规则.doc
- GB/T 32151.38-2024温室气体排放核算与报告要求 第38 部分:水泥制品生产企业.pdf
- 中国国家标准 GB/T 32151.38-2024温室气体排放核算与报告要求 第38 部分:水泥制品生产企业.pdf
- 《GB/T 22069-2024燃气发动机驱动空调(热泵)机组》.pdf
- GB/T 22069-2024燃气发动机驱动空调(热泵)机组.pdf
- 中国国家标准 GB/T 22069-2024燃气发动机驱动空调(热泵)机组.pdf
- 中国国家标准 GB/T 11064.1-2024碳酸锂、单水氢氧化锂、氯化锂化学分析方法 第1部分: 碳酸锂含量的测定 滴定法.pdf
- GB/T 11064.1-2024碳酸锂、单水氢氧化锂、氯化锂化学分析方法 第1部分: 碳酸锂含量的测定 滴定法.pdf
- 《GB/T 11064.1-2024碳酸锂、单水氢氧化锂、氯化锂化学分析方法 第1部分: 碳酸锂含量的测定 滴定法》.pdf
- GB/T 1148-2024内燃机 铝活塞.pdf
- 中国国家标准 GB/T 1148-2024内燃机 铝活塞.pdf
文档评论(0)