请看如下代码:只要在appdelegate.cpp的函数里面加入如下代码即可。(头文件#include <tchar.h>)
bool AppDelegate::applicationDidFinishLaunching() { _tsetlocale(LC_ALL,_T("")); ::AllocConsole(); ::freopen("conout$","w",stdout); }
vs2012下的cocos2d-x项目,怎样启用控制台进行输出呢?
原文:http://blog.csdn.net/zwc2xm/article/details/41869443