|
|
|
@ -394,22 +394,33 @@ SearchbyName
|
|
|
|
|
````
|
|
|
|
|
9·统计各分数段的学生人数及所占的百分比
|
|
|
|
|
StatisticAnalysis
|
|
|
|
|
step1:输入每个学生的成绩
|
|
|
|
|
step2:判断输入成绩所在的分数段
|
|
|
|
|
step3:将各个分数段的成绩个数除以学生总人数并乘以百分百
|
|
|
|
|
````
|
|
|
|
|

|
|
|
|
|
````
|
|
|
|
|
10·打印学生成绩
|
|
|
|
|
PrintScore
|
|
|
|
|
step1:输入学生的学号,姓名.
|
|
|
|
|
step2:查找该学生的成绩
|
|
|
|
|
step3:输出该学生的成绩
|
|
|
|
|
````
|
|
|
|
|

|
|
|
|
|
````
|
|
|
|
|
11·输出n个学生的学号、姓名及m门课程的成绩到文件student.txt中
|
|
|
|
|
WritetoFile
|
|
|
|
|
step1:输入学生的学号和姓名
|
|
|
|
|
step2:查找该学生的所有课程成绩
|
|
|
|
|
step3:将成绩保存到文件student.txt中
|
|
|
|
|
````
|
|
|
|
|

|
|
|
|
|
````
|
|
|
|
|
12·从文件中读取学生的学号、姓名及成绩等信息写入到结构体数组stu中
|
|
|
|
|
ReadfromFile
|
|
|
|
|
|
|
|
|
|
step1:查找文件
|
|
|
|
|
step2:从文件中读取学生的学号姓名成绩
|
|
|
|
|
step3:将信息写入到数组stu中
|
|
|
|
|
````
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|