Skip to content

Instantly share code, notes, and snippets.

@yhyjp
Created Apr 11, 2014
Embed
What would you like to do?
Win32 プロジェクト時の Console 表示方法
// 初期化.
AllocConsole();
freopen("CONOUT$", "w", stdout);
freopen("CONIN$", "r", stdin);
// ~ printf, cout, どうのこうの ~.
// 開放.
FreeConsole();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment