cocos2dx 3.10
1.在main函数中写入代码
AllocConsole(); freopen("CONIN$", "r", stdin); freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr);
2.在main.cpp中使用宏
#define USE_WIN32_CONSOLE
时间: 2024-10-21 09:45:20
cocos2dx 3.10
1.在main函数中写入代码
AllocConsole(); freopen("CONIN$", "r", stdin); freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr);
2.在main.cpp中使用宏
#define USE_WIN32_CONSOLE