文件名称:yuandaima
-
所属分类:
- 标签属性:
- 上传时间:2015-05-16
-
文件大小:829byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
学生成绩管理文件结构
(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
新建文件夹
新建文件夹
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.