你好,在程序最前面加上一句就不出那个黑窗口了,。把下面这句加上就行了。#pragma comment(linker,"/subsystem:\"Windows\" /entry:\"mainCRTStartup\"")