April 9th, 2003, 12:18 AM
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 9th, 2003, 12:22 AM
using std::string; after <string> if u dont want to include the .h