文件名称:yuandaima
介绍说明--下载内容均来自于网络,请自行研究使用
学生成绩管理文件结构
(1)先用记事本编辑文件stu1.dat存储一个班学习成绩。然后在C环境下,建立一个学生信息的结构体,用r方式打开上述文件,再用fscanf读入、用printf在屏幕上显示文件内容。
(2)利用循环使每个学生的三门功课的成绩相加,然后再把和除以三就得到了平均成绩。接着用冒泡法利用平均分的高低排出名次。最后用fprintf将每个学生的信息写入到stu2.dat文件。
-Student performance management file structure (1) first academic use Notepad to edit the file stu1.dat store a class. Then in the C environment, the establishment of a student information structure, opening the file with the r way, then fscanf reads, with printf displays the file contents on the screen. (2) the use of three cycles so that each student homework scores are added and then divided by three to get the average. Followed by discharging rank bubble method using High Low Average points. Finally, each student will write information to stu2.dat file with fprintf.
(1)先用记事本编辑文件stu1.dat存储一个班学习成绩。然后在C环境下,建立一个学生信息的结构体,用r方式打开上述文件,再用fscanf读入、用printf在屏幕上显示文件内容。
(2)利用循环使每个学生的三门功课的成绩相加,然后再把和除以三就得到了平均成绩。接着用冒泡法利用平均分的高低排出名次。最后用fprintf将每个学生的信息写入到stu2.dat文件。
-Student performance management file structure (1) first academic use Notepad to edit the file stu1.dat store a class. Then in the C environment, the establishment of a student information structure, opening the file with the r way, then fscanf reads, with printf displays the file contents on the screen. (2) the use of three cycles so that each student homework scores are added and then divided by three to get the average. Followed by discharging rank bubble method using High Low Average points. Finally, each student will write information to stu2.dat file with fprintf.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文件夹\main.c
新建文件夹