主题:我是C++新手~有一个问题~~~
crastal
[专家分:0] 发布于 2008-10-17 23:12:00
我是最近才刚学的(自学),
书上有一处要我照抄书上的源代码弄一个程序出来,
但是我找来找去都找不到一个适合的编辑器~
求求各位哥哥姐姐帮帮小的~~~
回复列表 (共9个回复)
沙发
永远精湛 [专家分:1440] 发布于 2008-10-18 18:38:00
Visual C++ 6.0比较经典。
Visual Studio 2008最新的。
板凳
crastal [专家分:0] 发布于 2008-10-18 21:35:00
谢谢~~~
3 楼
crastal [专家分:0] 发布于 2008-10-18 21:51:00
Dev-C++好不好用?
4 楼
crastal [专家分:0] 发布于 2008-10-19 22:58:00
那个~~~为什么下面那个源代码编译不了的???
// 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 楼
如果i知道 [专家分:60] 发布于 2008-10-20 16:51:00
#include <iostrean>
似乎iostream才对吧……还要加上.h
6 楼
crastal [专家分:0] 发布于 2008-10-20 22:11:00
谢谢你!
7 楼
mht@ [专家分:1260] 发布于 2008-10-20 22:17:00
#include <iostream> 最为认可的
如果加上 .h
就要去掉 using namespace std;
新的标准建议 你去掉.h
8 楼
crastal [专家分:0] 发布于 2008-10-21 12:42:00
谢谢你给我提供建议!
请以后多多指教!
9 楼
ykwfly [专家分:0] 发布于 2008-10-30 12:21:00
http://dl.oamo.com:8099/down/040804/VC6SP6.ISO
这个是VC++6.0的地址 很好用 无需序列号 也可以到狗狗里找 很安全
我来回复