c++的等待部分
c++吧
全部回复
仅看楼主
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 1
getchar();
2010年02月13日 13点02分 3
level 0
看不明白,能不能举下例子,谢谢
2010年02月14日 04点02分 5
level 0
6L的应该加上个windows.h头文件吧?
2010年02月14日 10点02分 7
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 4
9楼,end->endl
2010年02月24日 14点02分 11
level 1
用system("pause");应该加上 #include <system.h>
2010年02月24日 14点02分 12
1