Is there a way to catch the stdout and stderr in Visual Studio? For example, when I use
cout <<"Hello world!"<< endl;
A black window appears and disappears. It's so fast that I can't see it. There is a output section in the IDE but it only allow me to choose display output from build and something else but without the choice of stdout.
A cheating solution maybe calling
system("pause");
but it doesn't sound right. I searched in the option but I can't find an item.
Anyone has any idea? Thanks. I just start to use VS and I'm on Linux before.