文件名称:paiming
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:536.95kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
首先随机生成一个存放着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/Debug/paiming.ilk
paiming/Debug/paiming.pdb
paiming/paiming/Debug/BuildLog.htm
paiming/paiming/Debug/mt.dep
paiming/paiming/Debug/paiming.exe.intermediate.manifest
paiming/paiming/Debug/range.obj
paiming/paiming/Debug/vc90.idb
paiming/paiming/Debug/vc90.pdb
paiming/paiming/paiming.vcproj
paiming/paiming/paiming.vcproj.SRJ-PC.SRJ.user
paiming/paiming/range.cpp
paiming/paiming/RecordIn.dat
paiming/paiming.ncb
paiming/paiming.sln
paiming/paiming.suo
paiming/paiming/Debug
paiming/Debug
paiming/paiming
paiming
paiming/Debug/paiming.ilk
paiming/Debug/paiming.pdb
paiming/paiming/Debug/BuildLog.htm
paiming/paiming/Debug/mt.dep
paiming/paiming/Debug/paiming.exe.intermediate.manifest
paiming/paiming/Debug/range.obj
paiming/paiming/Debug/vc90.idb
paiming/paiming/Debug/vc90.pdb
paiming/paiming/paiming.vcproj
paiming/paiming/paiming.vcproj.SRJ-PC.SRJ.user
paiming/paiming/range.cpp
paiming/paiming/RecordIn.dat
paiming/paiming.ncb
paiming/paiming.sln
paiming/paiming.suo
paiming/paiming/Debug
paiming/Debug
paiming/paiming
paiming
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.