华润温州医药有限公司:鬼老出的一个留学生的一个 Final Project, 求助大家

来源:百度文库 编辑:神马品牌网 时间:2024/03/29 16:01:55
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.

不知道这个程序该怎么写,,,大家帮帮

合起来,加上点东西