forked from pn8rjlxip/StudentSystem
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
2 years ago
|
main
|
||
|
系统主函数模块,显示菜单,根据用户选择的菜单命令,执行相关操作。
|
||
|
|
||
|
ReadScore
|
||
|
输入n个学生的m门课成绩
|
||
|
AverSumofEveryStudent
|
||
|
计算每个学生各门课程的总分和平均分
|
||
|
AverSumofEveryCourse
|
||
|
计算每门课程的总分和平均分
|
||
|
SortbyScore
|
||
|
按选择法将数组sum的元素值排序
|
||
|
Ascending
|
||
|
使数据按升序排序
|
||
|
Descending
|
||
|
使数据按降序排序
|
||
|
SwapFloat
|
||
|
交换两个单精度浮点型数据
|
||
|
SwapLong
|
||
|
交换两个长整型数据
|
||
|
SwapChar
|
||
|
交换两个字符串
|
||
|
AsSortbyNum
|
||
|
按选择法将数组num的元素值按从低到高排序
|
||
|
AsSortbyNum
|
||
|
交换法实现字符串按字典顺序排序
|
||
|
SearchbyNum
|
||
|
按学号查找学生成绩并显示查找结果
|
||
|
SearchbyName
|
||
|
按姓名的字典顺序排出成绩表
|
||
|
StatisticAnalysis
|
||
|
统计各分数段的学生人数及所占的百分比
|
||
|
PrintScore
|
||
|
打印学生成绩
|
||
|
WritetoFile
|
||
|
输出n个学生的学号、姓名及m门课程的成绩到文件student.txt中
|
||
|
ReadfromFile
|
||
|
从文件中读取学生的学号、姓名及成绩等信息写入到结构体数组stu中
|