文件名称:paiming
- 所属分类:
- 教育/学校应用
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 537kb
- 下载次数:
- 0次
- 提 供 者:
- sun r*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
首先随机生成一个存放着50个学生成绩记录的数据文件RecordIn.DAT。
然后读取这个存放着50个学生成绩记录的数据文件RecordIn.DAT。
每个记录长为28个字节,其内容依次为:学号(XH)4字节,姓名(XM)6字节,数学成绩(SX)3字节,语文成绩(YW)3字节,外语成绩(WY)3字节,物理成绩(WL)3字节,化学成绩(HX)3字节,政治成绩(ZZ)3字节。
要求计算出总分,并按学号为偶数的记录,总分从高到低排序,相同成绩按学号从大到小排序,把学号、姓名和总分输出到文件RecordOut.DAT中,每个学生输出一行。
-The first randomly generated a store 50 records of student achievement data files RecordIn.DAT. Then reads the stored 50 records of student achievement data files RecordIn.DAT. Each record length of 28 bytes, the contents were as follows: 4-byte number (XH), name (XM) 6 bytes, math (SX) 3-byte language scores (YW) 3 bytes, foreign language achievement (WY) 3 bytes, 3 bytes of the physical results (WL), chemical score (HX) 3 bytes, and political achievements (ZZ) 3 bytes. Requirement to calculate the total score, press school record is even, the total score from highest to lowest sort of the same grade school numbers from largest to smallest sort, student number, name and score output to the file RecordOut.DAT Each student line of output.
然后读取这个存放着50个学生成绩记录的数据文件RecordIn.DAT。
每个记录长为28个字节,其内容依次为:学号(XH)4字节,姓名(XM)6字节,数学成绩(SX)3字节,语文成绩(YW)3字节,外语成绩(WY)3字节,物理成绩(WL)3字节,化学成绩(HX)3字节,政治成绩(ZZ)3字节。
要求计算出总分,并按学号为偶数的记录,总分从高到低排序,相同成绩按学号从大到小排序,把学号、姓名和总分输出到文件RecordOut.DAT中,每个学生输出一行。
-The first randomly generated a store 50 records of student achievement data files RecordIn.DAT. Then reads the stored 50 records of student achievement data files RecordIn.DAT. Each record length of 28 bytes, the contents were as follows: 4-byte number (XH), name (XM) 6 bytes, math (SX) 3-byte language scores (YW) 3 bytes, foreign language achievement (WY) 3 bytes, 3 bytes of the physical results (WL), chemical score (HX) 3 bytes, and political achievements (ZZ) 3 bytes. Requirement to calculate the total score, press school record is even, the total score from highest to lowest sort of the same grade school numbers from largest to smallest sort, student number, name and score output to the file RecordOut.DAT Each student line of output.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
paiming\Debug\paiming.exe
.......\.....\paiming.ilk
.......\.....\paiming.pdb
.......\paiming\Debug\BuildLog.htm
.......\.......\.....\mt.dep
.......\.......\.....\paiming.exe.intermediate.manifest
.......\.......\.....\range.obj
.......\.......\.....\vc90.idb
.......\.......\.....\vc90.pdb
.......\.......\paiming.vcproj
.......\.......\paiming.vcproj.SRJ-PC.SRJ.user
.......\.......\range.cpp
.......\.......\RecordIn.dat
.......\paiming.ncb
.......\paiming.sln
.......\paiming.suo
.......\.......\Debug
.......\Debug
.......\paiming
paiming
.......\.....\paiming.ilk
.......\.....\paiming.pdb
.......\paiming\Debug\BuildLog.htm
.......\.......\.....\mt.dep
.......\.......\.....\paiming.exe.intermediate.manifest
.......\.......\.....\range.obj
.......\.......\.....\vc90.idb
.......\.......\.....\vc90.pdb
.......\.......\paiming.vcproj
.......\.......\paiming.vcproj.SRJ-PC.SRJ.user
.......\.......\range.cpp
.......\.......\RecordIn.dat
.......\paiming.ncb
.......\paiming.sln
.......\paiming.suo
.......\.......\Debug
.......\Debug
.......\paiming
paiming