vc++的问题 懂的来 帮我看看 下面这一段代码的错误

来源:百度知道 编辑:UC知道 时间:2024/06/15 07:32:06
#include<iostream.h>
int main()
{
cout<<"hello world<<endl
return 0;
}

你第四行hello world后面少一个”,endl后少个;

#include<iostream.h>
int main()
{
cout<<"hello world"<<endl;
return 0;
}

return 0 ?? 意义何在

你都直接输出 HELLO WORLD 了 去掉return 0 就没错