// 打开终端;
#if defined(_WIN32) && defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
AllocConsole();
//重定向输入输出;
freopen("CONIN$", "r", stdin);//到磁盘文件中输入;
freopen("CONOUT$", "w", stdout);//输出到磁盘文件;
freopen("CONOUT$", "w", stderr);//错误输出设备;
#endif
AppDelegate app;
return Application::getInstance()->run();
//关闭终端;
#if defined(_WIN32) && defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
FreeConsole();
#endif