April 8th, 2003, 11:18 PM
String arrays and passing them to functions
I get an error message on the function prototype line saying
I have a string array set up to accept student names. I'd like to pass it to a function that would fill in the array with names, and pass it back to the main function.
Tried setting it up like this:
void fill(string array);
void fill(string array)
that "string" is not defined.
Any suggestions on how to change it, to make it work?
April 8th, 2003, 11:22 PM
using std::string; after <string> if u dont want to include the .h