Sorry if this is patently obvious...
I have a program, in for tomorrow, and there's one small part of it I can't get to work.
The program uses a dynamic array of country objects to store data and then pull out the highest values. I have the country class storing numbers fine, but am unable to pass it a string from the main class.
As soon as i define a method such as: void Country::setName(string);
I get errors.
How do i pass a string into a country object, and out again?
Thanks for any help,
Alistair
Edit:
Fixed - I was missing a "using names space std;"
Thanks guys :D
The program uses a dynamic array of country objects to store data and then pull out the highest values. I have the country class storing numbers fine, but am unable to pass it a string from the main class.
As soon as i define a method such as: void Country::setName(string);
I get errors.
How do i pass a string into a country object, and out again?
Thanks for any help,
Alistair
Edit:
Fixed - I was missing a "using names space std;"
Thanks guys :D
