C语言写地学生成绩管理系统链表

C语言写地学生成绩管理系统链表

ID:39672552

大小:15.25 KB

页数:11页

时间:2019-07-08

C语言写地学生成绩管理系统链表_第1页
C语言写地学生成绩管理系统链表_第2页
C语言写地学生成绩管理系统链表_第3页
C语言写地学生成绩管理系统链表_第4页
C语言写地学生成绩管理系统链表_第5页
资源描述:

《C语言写地学生成绩管理系统链表》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、标准文档#include#include#includestructstud{longnum;charname[20];floatsx;floatdx;floatts;floatdl;floatcx;floatzf;floatpj;};structstudcode{structstudstudent;structstudcode*next;};voidmenu();voidinput(structstudcode**);voidoutput(structstudcode*);voidbinsearch(struc

2、tstudcode*);voidinsert(structstudcode**);voiddelet(structstudcode**);voidgood(structstudcode*);voidfail(structstudcode*);实用文案标准文档voidsort(structstudcode*);voidback();voidmain(){charchoose;intflag=1;structstudcode*head;head=NULL;printf("请先录入学生成绩信息");printf("输入学生学号姓名高数、英语读写、英语听说、计算机导论和程序

3、设计的成绩");input(&head);while(flag){system("cls");menu();printf("请选择:");getchar();choose=getchar();switch(choose){case'1':output(head);back();实用文案标准文档break;case'2':binsearch(head);back();break;case'3':insert(&head);output(head);back();break;case'4':delet(&head);output(head);back();break;c

4、ase'5':good(head);back();break;case'6':fail(head);back();break;case'7':sort(head);output(head);back();break;实用文案标准文档case'0':flag=0;printf("***TheEnd!***");printf("####感谢使用,欢迎再次登录,拜拜!####");break;default:printf("WrongSelection!(选择错误,请重选)");back();}}}voidmenu(){printf("学生成绩统计

5、与分析系统");printf("菜单");printf("1.显示所有学生的信息");printf("2.查找某学号的学生信息");printf("3.插入某学生的信息");printf("4.删除某学号学生的信息");printf("5.统计各门课程成绩在90分以上学生所占百分比");printf("6.统计各门课程成绩在60分以下学生所占百分比");printf("7.按总分降序排序,依高低排出名次");printf("0.退出");}实用文案标准文档voidback(){intx;

6、printf("");do{printf("按1返回菜单界面:");scanf("%d",&x);}while(x!=1);}voidinput(structstudcode**headp){structstudcode*p;while(1){p=(structstudcode*)malloc(sizeof(structstudcode));scanf("%ld",&p->student.num);if(p->student.num==0)break;scanf("%s%f%f%f%f%f",&p->student.name,&p->student.sx,&p->s

7、tudent.dx,&p->student.ts,&p->student.dl,&p->student.cx);p->student.zf=p->student.sx+p->student.dx+p->student.ts+p->student.dl+p->student.cx;p->student.pj=p->student.zf/5;p->next=*headp;*headp=p;实用文案标准文档}}voidoutput(structstudcode*head){structstudcode*p;p=head;printf("学号t

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。