Hi,
I am trying to return a variable in a string, like this:
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.Code:void toString() { return "The variable is" +variable1; }
|
Results 1 to 3 of 3
Threaded View
|
Click Here to Expand Forum to Full Width |