I want to print messages in the console in Windows.
How do I do it with cout << ?
I want to print messages in the console in Windows.
How do I do it with cout << ?
This is a cool trick I learned from someone on the forums. Assuming you're using Visual Studio, if you go to the Project Properties and set configuration properties>Linker>System>SubSystem to "Console" your application will show a console and cout << will be displayed in the console. I usually use this for my debug project and return the subsystem to windows for my release projects.
HTH
Hua-Ying
Bookmarks