level 1
本人是菜鸟,刚刚开始学C++, 我写了个简单的 hello world , 但是为什么那个程序一闪就过了呢?问了一下,有人说缺少的等待部分,要怎样才能让程序停在屏幕上?
2010年02月13日 11点02分
1
level 1
我是用VC6.0 编的,在VC6.0里运行是不会这样的,但我点击保存的出的EXE 却会一闪就过去了,怎么的?
2010年02月13日 11点02分
2
level 2
#include<iostream>
using namespace std;
int main()
{
cout<<"hello"<<end;
system("pause") //暂停程序
return 0;
}
2010年02月24日 03点02分
9
level 2
system("pause") 应该改成 system("pause"); 不好意思。。呵呵
2010年02月24日 03点02分
10
level 1
用system("pause");应该加上 #include <system.h>
2010年02月24日 14点02分
12