我用dev-c++编译的C程序,为什么程序一运行就自动关闭

有3种简单方法:
自己加上程序语句
1.加头文件#include<system.h>
然后在最后加system("pause");

2.加头文件#include<conio.h>
最后加一句getch();

3.在最后加getchar();

猜你喜欢

转载自blog.csdn.net/qq_35507234/article/details/78609197