C++实现控制台应用程序隐藏后台运行

C++实现程序隐藏后台运行效果如下:

方式一:

#pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" )