标签:
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
#if defined(WIN32) && defined(_DEBUG)
// 开启控制台
AllocConsole();
// 申请读
freopen( "CONIN$", "r+t", stdin );
// 输出
freopen( "CONOUT$","w",stdout);
#endif
}在程序入口main我们比的代码就可以了几行增加了更多的。
版权声明:本文博主原创文章,博客,未经同意不得转载。
标签:
原文地址:http://www.cnblogs.com/gcczhongduan/p/4811636.html