回 帖 发 新 帖 刷新版面

主题:我是C++新手~有一个问题~~~

我是最近才刚学的(自学),
书上有一处要我照抄书上的源代码弄一个程序出来,
但是我找来找去都找不到一个适合的编辑器~

求求各位哥哥姐姐帮帮小的~~~

回复列表 (共9个回复)

沙发

Visual C++ 6.0比较经典。
Visual Studio 2008最新的。

板凳

谢谢~~~

3 楼

Dev-C++好不好用?

4 楼

那个~~~为什么下面那个源代码编译不了的???

// Listing 2.4 - using namespace std
#include <iostrean>
int main()
{
    using namespace std;
    
    cout << "Hello there!\n";
    cout << "Here is 5: " << 5 << "\n";
    cout << "There manipulator endl ";
    cout << "writes a new line to the screen.";
    cout << endl;
    cout << "Here is a very big number:\t";
    cout << 70000 << endl;
    cout << "Here is the sum of 8 and 5:\t";
    cout << 8+5 << endl;
    cout << "Here's a fraction:\t\t";
    cout << (float)5/8 << endl;
    cout << "And a very very big number:\t";
    cout << (double)7000*7000 << endl;
    cout << "Don't forget to replace Crastal ";
    cout << "with your name...\n";
    cout << "Crastal is a C++ programmer!\n";
    char response;
    cin >> response;
    return 0;
}

请各位哥哥姐姐帮帮忙~谢谢~~~
PS:我用的是Dev-C++

5 楼

#include <iostrean>
似乎iostream才对吧……还要加上.h

6 楼

谢谢你!

7 楼


#include <iostream> 最为认可的

如果加上 .h

就要去掉 using namespace std;

新的标准建议 你去掉.h

8 楼

谢谢你给我提供建议!


请以后多多指教!

9 楼

http://dl.oamo.com:8099/down/040804/VC6SP6.ISO  
这个是VC++6.0的地址  很好用 无需序列号 也可以到狗狗里找 很安全

我来回复

您尚未登录,请登录后再回复。点此登录或注册