views:

200

answers:

1

I am using microsoft visual studio to do C++. I don't see std::err and std::out in the output console of the IDE. Is there a way to redirect them ?

A: 

If you are building a console application standard output (and standard error) are printed in the console's window. To print something to the output console, you need to use OutputDebugString.

kgiannakakis
Are you saying that there is no way to redirect the std::out and std::err to the output console ?
jules
No, I don't know about that. In my opinion it will be easier to write directly to the output console. As the link in my answer demonstrates, you can even use streams for this.
kgiannakakis