| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1214 人关注过本帖
标题:鬼老又给偶出了一个 Final Project, 紧急求助大家
取消只看楼主 加入收藏
山里的人
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2006-2-24
收藏
 问题点数:0 回复次数:5 
鬼老又给偶出了一个 Final Project, 紧急求助大家
You are to create a class with the following private elements:

String name[10] the candidates name
Char party[10] the candidates party ( d or r or I or whatever )
Int money[10] the campaign warchest of the candidate
Int howmany

Along with member functions (public)

Add – which should allow the user to add additional candidates
Print – which should print out the candidates as well as their party
and warchest
Save – data to a file
Load – data from a file
Sort – candidates by how much money they have

And write a short program that uses the class and allows the user to
add, print, save, load, and sort the data.




不知道这个程序该怎么写... 大家帮帮...关键程序add, print, save, load, and sort the data.
搜索更多相关主题的帖子: Project Final 
2006-05-02 15:02
山里的人
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2006-2-24
收藏
得分:0 
不是啊,他说是用VC编的。。。


我帮翻译下。。

2006-05-02 15:20
山里的人
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2006-2-24
收藏
得分:0 

假设你要制作一个class注册单,(使用函数编程 )但是必须包含以下元素:

String name[10] 横向候选人名字,10位

Char party[10] the candidates party ( d or r or I or whatever ) (不知道这个是要什么,应该是也是多少参加者 )
Int money[10] 所给予的数货币,10位
Int howmany int 多少人

Along with member functions (public)
按照主体程序,所需要包含的子函数:

Add – which should allow the user to add additional candidates
增加 - 必须允许用户增加额外的候选人。

Print – which should print out the candidates as well as their party
and warchest
输入 - 必须可以列出所有候选人。

Save – data to a file
保存 - 数据保存到一个文党
Load – data from a file
读出 - 数据可以从文党读出
Sort – candidates by how much money they have
归类 - 参加者按照多少钱他们付出归类。

And write a short program that uses the class and allows the user to
add, print, save, load, and sort the data.
写这个程序允许用户修改所有资料.包括 add, print, save, load, and sort the data.

2006-05-02 15:33
山里的人
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2006-2-24
收藏
得分:0 
以下是引用soft_wind在2006-5-2 15:49:00的发言:

类似的程序以前我们上个学期编过。
这不是我编的,是我同学编的,他编得好,给你看看。[em02

}

先谢谢先,不管怎么样。。。
谢谢以后我就去测试... ....

2006-05-02 22:01
山里的人
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2006-2-24
收藏
得分:0 
以下是引用–★–在2006-5-2 16:14:00的发言:
string name[10] the candidates name //存放候选人的名字
char party[10] the candidates party ( d or r or I or whatever )
//候选人从属的政党(民主党、共和党、独立候选人、其他)
int money[10] the campaign warchest of the candidate
//该候选人筹措到的竞选基金(最多存放10笔)
int howmany
//实际筹措到的竞选基金的“笔数”

哇。。。兄弟帮翻译得好。
应该是这个意思

2006-05-02 22:01
山里的人
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2006-2-24
收藏
得分:0 
#include "alloc.h"

开始的头文件怎么编写?
2006-05-04 23:50
快速回复:鬼老又给偶出了一个 Final Project, 紧急求助大家
数据加载中...
 
   



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

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