使用VS2010后,用Ctrl+F5运行程序,结果控制台窗口一闪就没了,也没有出现”press any key to continue…” 或者“请按任意键继续”。 
出现这种原因,主要是建立工程时选用的是“空工程(Empty Project)”,而不是“Win32控制台程序(Win32 console application)”。 
解决的方法是:将工程属性(properties)> “configuration properties” > “linker” > “system”中的”subsystem” 项改为“Console (/SUBSYSTEM:CONSOLE)” 
改正完之后,重新使用Ctrl+F5运行程序,问题已经解决,让人喜欢的”press any key to continue…” (“请按任意键继续”)又回来了!!!

相关文章:

  • 2022-12-23
  • 2021-10-06
  • 2021-11-20
  • 2021-06-18
  • 2021-08-20
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
猜你喜欢
  • 2021-06-17
  • 2021-06-16
  • 2021-04-29
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案