很简单,只需在程序中加入下面一句话 #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) 这样就不会显示窗口了