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.