文件名称:Re
介绍说明--下载内容均来自于网络,请自行研究使用
本程序采取了在主函数中直接使用相关语句及函数,从而实现了对文件的读写,对数据的处理(包括查询并输出成绩最高的学生的相关信息;求出低于,等于及高于平均成绩的人数;成绩优秀(90-100),良好(80-89),中等(70-79),及格(60-69),不及格(0-59)的人数及其所占的百分比)。
设计思路是:首先通过对文件读写对已定义的结构体赋值,其次通过for循环来对数据进行处理:先找出数据中的最大值,再通过循环找到成绩最高的学生的相关信息;接着求出平均值,进而再通过循环求出高于等于低于平均值的学生的人数;最后也通过循环找到了优秀,良好,中等,及格,不及格的人数及百分比。
-The procedure adopted in the main function directly with the relevant statements and functions, in order to achieve read and write to the file, the data processing (including query and output information of the highest achievements of students obtained less than, equal to and higher than the average number of results outstanding results (90-100), good (80-89), Medium (70-79), the passable (60-69), failed (0-59) the number and percentage of) . The design idea is: first through read and write to the file structure defined assignment followed for circulation to the data processing: first find the maximum value of the data, and then through the loop to find the relevant information of the highest scores of the students followed averaged, and then through the loop obtained higher than the number of students equal to the lower than average end through the loop to find excellent, good, medium, and the number and percentage of pass, fail.
设计思路是:首先通过对文件读写对已定义的结构体赋值,其次通过for循环来对数据进行处理:先找出数据中的最大值,再通过循环找到成绩最高的学生的相关信息;接着求出平均值,进而再通过循环求出高于等于低于平均值的学生的人数;最后也通过循环找到了优秀,良好,中等,及格,不及格的人数及百分比。
-The procedure adopted in the main function directly with the relevant statements and functions, in order to achieve read and write to the file, the data processing (including query and output information of the highest achievements of students obtained less than, equal to and higher than the average number of results outstanding results (90-100), good (80-89), Medium (70-79), the passable (60-69), failed (0-59) the number and percentage of) . The design idea is: first through read and write to the file structure defined assignment followed for circulation to the data processing: first find the maximum value of the data, and then through the loop to find the relevant information of the highest scores of the students followed averaged, and then through the loop obtained higher than the number of students equal to the lower than average end through the loop to find excellent, good, medium, and the number and percentage of pass, fail.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Re.c