How to output value of variable to the windows' window?

May 26, 2016 at 7:04pm
How to output value of variable to the windows' window?
In console application there is 'cout' function.
May 26, 2016 at 8:19pm
May 26, 2016 at 9:50pm
But textout can't output int without conversion to char.
Is it possible to do it without conversion?
May 27, 2016 at 8:26am
No, you can output only text and images. However converting an int to a char is easy - either use itoa or std::to_string
May 27, 2016 at 9:17am
In console application there is 'cout' function.

cout makes use of the conversion capabilities of the c++ stream. You could use that capability on its own by using a std::ostringstream, which sends the output to a string instead of to the console.
Topic archived. No new replies allowed.