cocos2dx 在windows下开启console

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

 

posted @ 2016-07-20 02:10  pcwen.top  阅读(540)  评论(0编辑  收藏  举报
pcwen.top