在main.cpp中
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
AllocConsole();
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
#endif最后记得要释放,不然后会有内存泄露
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
FreeConsole();
#endif
848




被折叠的 条评论
为什么被折叠?



