1,项目属性设置

【C++】控制台程序不显示控制台黑框

2,程序开头添加

#include "stdafx.h"
#include<windows.h>
//不显示控制台
#pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" )


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-12-12
  • 2022-12-23
相关资源
相似解决方案