小编在用vs写程序时,经常碰到调试窗口一闪而过的情况,以至于根本无法查看程序输出结果。

为了解决这个问题,可以在程序的末尾加上一个系统调用语句:

1 int main(){
2         printf("我不会黑屏了哈哈\n");
3         system("pause");   
4         return 0;
5 }

显示结果如下:

           Visual Studio调试窗口一闪而过的解决方法

相关文章:

  • 2022-01-15
  • 2022-01-11
  • 2021-07-27
  • 2021-12-18
  • 2021-04-04
  • 2022-12-23
  • 2022-01-22
猜你喜欢
  • 2021-10-02
  • 2022-12-23
  • 2022-01-02
  • 2021-06-20
  • 2021-05-17
相关资源
相似解决方案