目录 在你的控制台程序前加入代码 在你的控制台程序前加入代码 如下: #ifdef _MSC_VER #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) #endif