Skip to content

Instantly share code, notes, and snippets.

@joeld42
Created April 11, 2017 21:10
Show Gist options
  • Save joeld42/4a5978c12fcbe26af5dc5d9bab344ab1 to your computer and use it in GitHub Desktop.
Save joeld42/4a5978c12fcbe26af5dc5d9bab344ab1 to your computer and use it in GitHub Desktop.
How to make a console for printfs in windows....
#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