CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - YW-2
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - YW-2 - List
[
Education soft system
]
paiming
DL : 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.
Date
: 2026-01-09
Size
: 537kb
User
:
sun rongju
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.