c语言解决办法:
#include <stdio.h>
在主程序中加一句
getchar();
按Enter键就可以退出。
c++解决办法:
#include <iostream>
system("pause");
本文介绍在C和C++编程中实现程序暂停的方法,使用getchar()和system(pause)函数,使程序等待用户输入后继续执行,适用于不同编程环境。
c语言解决办法:
#include <stdio.h>
在主程序中加一句
getchar();
按Enter键就可以退出。
c++解决办法:
#include <iostream>
system("pause");
1222
1332
893
992

被折叠的 条评论
为什么被折叠?