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.
StudentSystem/c7.md

16 lines
789 B

2 years ago
c7学生总分排序
如果a < b, 4sum
如果a > b则按降序排序。选择菜单命令 5按选择法将数组sum的元素值按降序进行排序显示提示信息最后打印出学生成绩。
请输入你的选择: 4
按分数降序排序:
2214111038 ZhangTongtong 100 95 86 281 93
2214111018 LiYuxuan 85 91 98 274 91
2214111026 MengTingyu 77 89 99 265 88
2214111022 ZhouYufan 75 89 100 264 88
请输入你的选择: 5
按分数升序排列:
2214111022 ZhouYufan 75 89 100 264 88
2214111026 MengTingyu 77 89 99 265 88
2214111018 LiYuxuan 85 91 98 274 91
2214111038 ZhangTongtong 100 95 86 281 93