请教一个例题,非常简单,但我找不出毛病?
#include <iostream>
using namespace std;
int main()
{
char c1='C',c2='+',c3='+';
cout <<"I say:\""<<c1<<c2<<c3<<'\"';
cout <<"\t\t"<<"He says:\"C++ is very interesting!\"<<'\n';
return 0;
}
看看这段代码有什么问题吗,我自己觉得没啥问题了,可是在VC++6.0编译时总出现下面提示:
--------------------Configuration: liti7 - Win32 Debug--------------------
Compiling...
liti7.cpp
C:\Documents and Settings\Administrator\liti7.cpp(7) : error C2001: newline in constant
C:\Documents and Settings\Administrator\liti7.cpp(8) : error C2143: syntax error : missing ';' before 'return'
Error executing cl.exe.
liti7.obj - 2 error(s), 0 warning(s)
请教怎么回事?