vc环境下调试c程序有关问题
vc环境下调试c程序问题
运行的时候,出来一个dos窗口,答案一闪而过.就自动关了。
怎么样才能不让窗口自己关闭,手动关掉
------解决方案--------------------
system( "pause ");//加这句
return 0;
------解决方案--------------------
#include <stdio.h>
#include <conio.h>
int main()
{
//你的代码.....
getch();
return 0
}
------解决方案--------------------
cin.get()
或
system( 'pause ')
或
getchar()
运行的时候,出来一个dos窗口,答案一闪而过.就自动关了。
怎么样才能不让窗口自己关闭,手动关掉
------解决方案--------------------
system( "pause ");//加这句
return 0;
------解决方案--------------------
#include <stdio.h>
#include <conio.h>
int main()
{
//你的代码.....
getch();
return 0
}
------解决方案--------------------
cin.get()
或
system( 'pause ')
或
getchar()