Created
April 11, 2017 21:10
-
-
Save joeld42/4a5978c12fcbe26af5dc5d9bab344ab1 to your computer and use it in GitHub Desktop.
How to make a console for printfs in windows....
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef NDEBUG | |
AllocConsole(); | |
SetConsoleTitle( L"console window title" ); | |
freopen("CONOUT$", "w", stdout ); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment