Yes I am using Xcode. And that worked! Thanks :)
Type: Posts; User: epb
Yes I am using Xcode. And that worked! Thanks :)
This is also gives me an empty output :(
EDIT: The output is two empty lines, so I guess you can say that the output is not completely empty
I get no output. If I add
cout << out << endl; after the assignment of 'i' to 'out' I get '0' as a single output.
Sorry if I wasn't clear about this.. I have already tried printing out 's', and that revealed an empty string (which is why I concluded that the code returns an empty string).
No that is not...
Hi,
I tried the following code to convert an int to a string:
int i = 5678;
string s;
stringstream out;
out << i;
s = out.str();