Hi,

I am trying to return a variable in a string, like this:

Code:
void toString()
{
     return "The variable is" +variable1;
}
I didn't think this would work, and it didn't, so how can i do this? I don't want to do it with cout instead of return.