新人求助
visual吧
全部回复
仅看楼主
level 2
gxlh486 楼主
// myfirst.cpp--displays a message
#include <iostream>
int main()
{
using namespace std;
cout << "Come up and C++ me some time.";
cout << endl;
cout << "You won't regret it!" << endl;
return 0;
}
为什么这个在编译的时候老是出错如下(这是书上VS2003的源代码,不过我是用的VS2005):
1>c:\program files\microsoft visual studio 8\vc\include\cstdlib(20) : error C2059: syntax error : ':'
1>c:\program files\microsoft visual studio 8\vc\include\cstdlib(21) : error C2143: syntax error : missing '{' before ':'
哪位大神回复我啊,想学编程,刚开始就卡壳了.
2013年11月06日 13点11分 1
level 2
gxlh486 楼主
编绎不成功是不是因为我还少个iostream文件?
没接触过这个东西,光看书不是很明白,谁指导下?
2013年11月06日 14点11分 2
语法错误,你的这个程序想实现什么呢?iostream.h
2013年11月22日 12点11分
回复 野丫头CQ :实现输出: Come up and C++ me some time. You won't regret it! 这是书上写的代码,还会语法出错?
2013年11月24日 04点11分
1