Hey guys,
I was wondering how I'd go about returning a "list" of strings inside a member function. I'm assuming an array would have to be created, but I'm not sure...I've tried looking it up but anything with "string" Google'd leads to the string class.
Please, I'd really prefer not to show the code (unless requested) because someone usually does it for me and I'd rather just see an example or get a clear understanding. No offense, please, but if someone does it for me, I get de-motivated and start trying to do it another way. OCD here...
string Test::getNames();
{
string y = "dog";
string x = "happy";
string d = "night";
}
What I need is for them to be outputted in int main. Sorry for not making it clear right off the bat...