| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 501 人关注过本帖
标题:这是一张作业贴~有人想帮帮忙吗~~~呜呜~
只看楼主 加入收藏
zhangjeff
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2010-2-9
结帖率:100%
收藏
已结贴  问题点数:15 回复次数:4 
这是一张作业贴~有人想帮帮忙吗~~~呜呜~
Assume that a file, named discussion_record.txt, contains 20 WebCT discussion records (you can download it from WebCT.) The attributes in one discussion record include the record ID, student ID, Name, Age, reply number, topic. For example,
1 001d John  18 1  DataType
2 002d Mary 18 3  Expression
……..
Functional Requirements: (50 marks)
Design and implement a program to perform the following functions.
1. (5 marks) Read the discussion records from the file and show them on the screen in the following format:
001 001d John 18 1
002 002d Mary 19 2
………
2. (5 marks) Display a discussion record on the screen according to the record ID input by the user.
3. (10 marks) Allow a user to find a discussion record by specifying the record ID and then modify the reply number. After the modification, the updated record should be written into the file discussion_record.txt.
4. (15 marks) Sort the discussion records in decreasing order, according to the reply number. Print the sorted discussion records on the screen
5. (15 marks) Make statistic of the number of discussion records created by every student and show the result on the screen in the following format:
       John   7
Mary  5
      Lilei   8

Implementation Requirements: (30 marks)
1. (5 marks) Use an array of struct to read the discussion records from the file discussion_record.txt and use this array to perform all the operations in the program.
2. (15 marks) Provide a text menu for users to select the operations. An example is given below.

3. (5 marks)  Use the Switch and Case statements to implement the menu function.
4. (5 marks) Develop a function for every operations in the menu. For example, the operation of “printing all discussion records” is corresponding to the function print_all_records(). Another example is the operation of “update a discussion record” which is corresponding to the function update_record ().
搜索更多相关主题的帖子: 作业 
2010-02-16 13:22
zhangjeff
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2010-2-9
收藏
得分:0 
本人一共就上了8小时的课程就编这
还有一个数据 如果哪位想帮小弟的话 我就传给他  这里没有办法留i~
2010-02-16 14:30
Justfeeling
Rank: 2
等 级:论坛游民
帖 子:26
专家分:47
注 册:2010-2-15
收藏
得分:5 
....居然还是英文的看不懂额
2010-02-17 00:08
小J
Rank: 8Rank: 8
等 级:等待验证会员
威 望:1
帖 子:282
专家分:704
注 册:2009-6-18
收藏
得分:5 
兄弟麻烦你翻译成中文好不
英文看着眼花
2010-02-17 14:53
zhangjeff
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2010-2-9
收藏
得分:0 
回复 4楼 小J
呵呵~谢谢~!!我搞定了~!
2010-02-18 12:46
快速回复:这是一张作业贴~有人想帮帮忙吗~~~呜呜~
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.074088 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved