Orphious
09-21-01, 11:18 AM
If I want to return a string, what type function would it be.
Would it be string like this?
string text() const
{
string answer;
if(blah==Yes)
answer="YES";
else is(blah==no)
answer = "NO";
else
answer = "POOP";
return answer;
}
It couldn't be a void cause you're returning something right? It works with string but is that right?
Thanks
Would it be string like this?
string text() const
{
string answer;
if(blah==Yes)
answer="YES";
else is(blah==no)
answer = "NO";
else
answer = "POOP";
return answer;
}
It couldn't be a void cause you're returning something right? It works with string but is that right?
Thanks