我是靠谱客的博主 拼搏雪糕,这篇文章主要介绍解决Visual Studio中调试窗口一闪而过,现在分享给大家,希望可以做个参考。

复制代码
1
2
引入库“cstdlib”, 增加一行代码“std::system("pause")“”;就可以了。

原代码(会一闪而过的代码):

复制代码
1
2
3
4
5
#include <stdio.h> void main() { printf("锄禾日当午, 汗滴禾下土"); }

增加之后的:

复制代码
1
2
3
4
5
6
7
#include <stdio.h> #include <cstdlib> void main() { printf("锄禾日当午, 汗滴禾下土"); std::system("pause"); }

下面这种也可以

复制代码
1
2
3
4
5
6
7
#include <stdio.h> #include <stdlib.h> void main() { printf("锄禾日当午, 汗滴禾下土"); system("pause"); }

参考自尹成老师

哔哩哩哔:
https://www.bilibili.com/video/BV1sW411v7VZ?from=search&seid=4614745040852343839

最后

以上就是拼搏雪糕最近收集整理的关于解决Visual Studio中调试窗口一闪而过的全部内容,更多相关解决Visual内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(101)

评论列表共有 0 条评论

立即
投稿
返回
顶部