Number 1
复制代码
1
2
3cin.clear(); // 清空缓存 cin.sync(); // 清空缓存 cin.get(); // 接收键盘输入
Number 2
复制代码
1
2
3
4
5
6#include <stdio.h> int main() { getchar(); return 0; }
Number 3
复制代码
1
2
3
4
5
6#include <stdlib.h> int main() { system("pause"); //注意:“system("pause")”;语句会显示“请按任意键继续……” return 0; }
最后
以上就是有魅力荔枝最近收集整理的关于三种解决c程序运行完成后闪退的办法的全部内容,更多相关三种解决c程序运行完成后闪退内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复