问题标题: 请问我的代码哪里不对

6
3

6
0
3
8
赵逸凡
赵逸凡
初级启示者
初级启示者

行1:没错

行2:没错

行3:无缩进;流符方向反了;Hello,后要有空格;World首字母要大写;

行4:无缩进;return 0的0错了;

    cout<<"Hello, World";
    return 0;

 

1
鲁天一
鲁天一
初级光能
初级光能

cout>>"Hello,world!";

>>错了,<<对的

return o;

o错了,0对的。

编译会有提醒。

0
桂心俊
桂心俊
中级守护
中级守护

第3行的>>应改为<<

第4行的o应改为0

0
0
0
0
0
栾峻岩
栾峻岩
初级天翼
初级天翼

 第三行和第四行都错了。cout后面应跟<<,return 后面跟0,不是o;

0
朱苏婉
朱苏婉
中级守护
中级守护

应该是cout<<"Hello,world!";

 括号反了

0
王祥润
王祥润
新手守护
新手守护

cout>>"Hello,world!";

>>错了,<<对的

return o;

o错了,0对的。

编译会有提醒。

0
吴寒
吴寒
初级守护
初级守护

是cout<<,你写反了;

return 0;的0写成了o;

0
贺晓雨
贺晓雨
资深守护
资深守护

cout是<<,return 0 不是 return o。

0
高杨
高杨
资深守护
资深守护

cout<<

高杨在2018-04-22 11:49:07追加了内容

你是新手吧

0
张鑫宇
张鑫宇
中级守护
中级守护

应该是cout<<,would的W要大写,return 0,不是o

0
颜咏春
颜咏春
中级光能
中级光能

应该是cout<<"Hello,world!";

 括号反了

0
周建勋
周建勋
中级光能
中级光能

行1:没错

行2:没错

行3:无缩进;流符方向反了;Hello,后要有空格;World首字母要大写;

行4:无缩进;return 0的0错了;

 

 

cout<<"Hello, World";

 

return 0;

0
褚福磊
褚福磊
新手光能
新手光能

>>改成<<

return o改成return 0

0
0
0
张马润泽
张马润泽
初级光能
初级光能
int main()
{
cout<<"Hello,world!";
return 0;
}

@葛新 ,没缩进也行

0
0
2
0
0
0
万正瑞
万正瑞
高级守护
高级守护

妈呀,大白天见到鬼了!

是cout<<"Hello, World";

0
0
0
0
0
王子凡
王子凡
高级光能
高级光能

cout<<"Hello,world!";

return 0;

0
0
0
0
0
0
0
0
李翊冉
李翊冉
高级守护
高级守护

cout要用“<<”,不是“>>”

0
0
0
孙锦宸
孙锦宸
修练者
修练者

祝你CE快乐

Complete Error:0分Complete Error :0分

孙锦宸在2019-01-05 11:04:44追加了内容

[Error] no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'const char [13]')

不是>> 是 <<

[Error] 'o' was not declared in this scope

return 0 而不是 return o

 

0
0
叶奥瑞
叶奥瑞
修练者
修练者

是cout<<,你写反了;

return 0;的0写成了o;

0
0
包涵宇
包涵宇
中级天翼
中级天翼

#include<iostream>

using namespace std;

int main()

{

    cout<<"Hello, World!";

    return 0;

}

0
0
我要回答