#include
Int main()
{
using namespace std;
int carrots;
cattots = 25;
cout << “I have”;
cout << carrots;
cout << “ carrots.”
cout << end1;
carrots = carrots - 1;
cout << “Crunch, crunch. Now I have “ << carrots << “ carrots.” << end1;
return 0;
}
在用g++进行编译的时候,提示 end1没有被定义,请问是怎么回事?
如果将end1删除则可以正常编译,是不是显示结果将出现问题?
还有请问“=”两边必须加空格吗?
lcdstrongman_hw 于 2012-01-30 22:53:02发表:
容易敲错
cf0532 于 2012-01-05 12:42:25发表:
不好意思,知道错误了
不是end1 是endl