引入库“cstdlib”, 增加一行代码“std::system("pause")“”;就可以了。
原代码(会一闪而过的代码):
#include <stdio.h>
void main() {
printf("锄禾日当午, 汗滴禾下土");
}
增加之后的:
#include <stdio.h>
#include <cstdlib>
void main() {
printf("锄禾日当午, 汗滴禾下土");
std::system("pause");
}
下面这种也可以
#include <stdio.h>
#include <stdlib.h>
void main() {
printf("锄禾日当午, 汗滴禾下土");
system("pause");
}
参考自尹成老师
和
哔哩哩哔:
https://www.bilibili.com/video/BV1sW411v7VZ?from=search&seid=4614745040852343839
最后
以上就是拼搏雪糕最近收集整理的关于解决Visual Studio中调试窗口一闪而过的全部内容,更多相关解决Visual内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复