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

How to output value of variable to the windows' window?
In console application there is 'cout' function.
But textout can't output int without conversion to char.
Is it possible to do it without conversion?
No, you can output only text and images. However converting an int to a char is easy - either use itoa or std::to_string
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.