coco2d-x open console

#ifdef WIN32
    _tsetlocale(LC_ALL, _T(" "));
    ::AllocConsole();
    ::freopen("CONIN$", "r", stdin);
    ::freopen("CONOUT$", "w", stdout);
    ::freopen("CONOUT$", "w", stderr);
    system("color 2");
#endif // WIN32

 

posted @ 2020-04-25 00:38  YZFHKMS-X  阅读(222)  评论(0编辑  收藏  举报