c语言运行时隐藏dos窗口 只要加一个这个语句就行了。 #pragma comment(linker,"/subsystem:“windows” /entry:“mainCRTStartup”") 例: