- 1、本文档共9页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
c语言代码-学生信息排序(C language code - student information sorting)
c语言代码-学生信息排序(C language code - student information sorting)
Description of the problem
Student information by student number, name, gender, language scores, math, English, average score and total score of.
Student ID, name the length of not more than 20, the number of students is less than 100.
Write a student information processing program requires the following function
1) student information into the command format is as follows:
INSERT ID Name Sex S1 S2 S3
Represents the insertion of a student information.
Insert the student information display, the format is as follows:
ID Name Sex Chinese math English scores average score total score
There is a separate space, all the scores of 2 decimal places.
2) display all the student information, the command format is as follows:
LIST
According to the display information of all student number sequence. Each student information line, the format is as follows
ID Name Sex Chinese math English scores average score total score
There is a separate space, all the scores of 2 decimal places.
3) exit procedures, command format is as follows:
QUIT
Output Good bye! after the end of the program.
Write a program to complete the function.
The last command input is QUIT
The design of a structure that the student information.
We design two function, insert and output to deal with student information.
Design a function of all the student information sorted by student number.
And then design a function of the output information for all students. The main function of the call and display student information into the function information of all students.
input
Input multiple lines, each line of a command, command format:
INSERT ID Name Sex S1 S2 S3
Insert a student information and student information display.
LIST
According to the display information of all student number sequence. Each student information line,
QUIT
Exit the program
output
The output of multiple lines, each input command has a corresponding output format are as follows:
INS
您可能关注的文档
- abaqus6.4导入外来模型的几点小经验(Some little experience with importing exotic models from ABAQUS6.4).doc
- access数据库基础及应用教程课后习题答案第二版 米红娟(Access database foundation and application tutorials, after-school Exercises answer second edition, Mi Hongjuan).doc
- actioncontext和servletactioncontext小结(Actioncontext and servletactioncontext nodules).doc
- access课后习题答案 - 副本(Access after-school exercise answers - copy).doc
- activex简介(ActiveX简介).doc
- adobe photoshop cs5 系统要求(PS图象处理软件系统要求Adobe CS5).doc
- ado简介及语法vba(Ado简介及语法vba).doc
- adsl宽带上网提速新法 从upnp功能着眼(ADSL broadband Internet speed up new law, from the UPnP features).doc
- actionscript 30系列教程1与flash9先来一次亲密接触!(ActionScript 30 Tutorial Series 1 first contact with flash9!).doc
- ac计算算法(AC computing algorithm).doc
最近下载
- 最新人力资源从业资格练习题(共5套含答案).docx VIP
- 中华人民共和国环境保护法解读.pptx VIP
- 2024年高校教师资格证之高校教师职业道德通关试题库(有答案).pdf VIP
- 初中音乐《谁说女子不如男 豫剧《花…》时良华PPT课件新优质课比赛公开课获奖5.pptx VIP
- 液压与气压传动课后习题答案.pdf VIP
- 福建省厦门市2023-2024学年高一上学期期末质检地理试题 附答案.docx VIP
- 2025江苏苏州狮山商务创新发展集团有限公司下属板块公司招聘4人笔试备考试题及答案解析.docx VIP
- 供货方案及质量保证措施.docx VIP
- 森林灭火设备培训课件.pptx VIP
- 2025年多旋翼无人机超视距驾驶员执照备考题库宝典(核心题版).docx
文档评论(0)