欢迎来到天天文库
浏览记录
ID:11311344
大小:208.00 KB
页数:18页
时间:2018-07-11
《c语言课程设计报告-学生成绩管理系统》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、目录一、需求分析···························································1二、概要设计···························································11、系统功能组成框图····················································12、数据结构设计························································23、模块说明··
2、··························································2三、详细设计···························································21、模块设计代码·······················································22、程序详细代码·······················································33、函数的调用··········
3、···············································11四、调试分析·······················17····································11一、用户手册···························································11二、测试数据···························································15三、附件··············
4、·················································16四、心得体会···························································16学生成绩管理系统一、需求分析1、此程序里包含着多个属性,所以类型为结构体类型2、程序内的对象调入和调出都需循环体类型的文件操作实现3、学生成绩的信息修改、插入、删除都需保存,而保存需进行文件的读写操作4、排序操作可采用冒泡排序和选择法排序5、主函数中根据不同选择执行不同操作可通过“多分支选择语句swit
5、ch”实现二、概要设计学生成绩管理系统1.系统功能组成框图17输入系统修改系统输出系统删除系统插入系统按学号查询系统升序按姓名降序按学号排序系统升序按总分降序2.数据结构设计成绩管理系统为结构体struct结构体名{定义名字的长度,学号的长度定义性别三门课程的成绩总分平均分}3.模块说明171、每一条记录包括一个学生的学号、姓名、性别、3门成绩、总分、平均成绩。2、输入功能:可以一次完成规定数字记录的输入。3、输出功能:完成全部学生记录的显示。4、插入功能:按学生的学号、姓名、性别、三门课程成绩、总分、平均分插入学生信息。5、修改功能
6、:选择学生进行修改6、排序功能:按学生总分进行升降排序。7、查找功能:完成按姓名或者学号查找学生记录,并显示。8、删除功能:选择学生的学号或者名字进行核对,确定之后删除三、详细设计1、模块设计代码input()/*输入模块*/output()/*输出模块*/search()/*查询模块*/modify()/*修改模块*/delete()/*删除模块*/insert()/*插入模块*/sort()/*排序模块*/2、程序详细代码#include/*头文件(源文件)*/structstu/*定义一个结构体用来存放学生学号
7、、三门课成绩、总分及平均成绩*/{charnum[10];/*学号长度*/charname[10];/*姓名长度*/charsex;/*性别类型*/intscore[3];/*三门课程类型*/*floatsum;/*总分类型*/floatave;/*平均分类型*/}student[55];intn=3;/*定义n=3*/main()/*主函数*/{charch;/*定义类型*/while(1)/*循环(死循环)主界面*/{system("cls");17printf("
8、n");clrscr();printf("************************************************************
此文档下载收益归作者所有