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

6
3

6
0
黄依成
黄依成
中级天翼
中级天翼

错误:

1、错误代码:cout>>"Hello World";

流符反了

应改成:cout<<"Hello World";

2、错误代码:return o;

是0不是o

应改成:return 0;

0
陈九林
陈九林
高级守护
高级守护

输出流!

是<< ,不是>>.

0
陈九林
陈九林
高级守护
高级守护

不是 world ,而是 World !

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

行1:没错

行2:没错

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

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

 

 

cout<<"Hello, World";

 

return 0;

0
0
0
0
赵泰来
赵泰来
高级光能
高级光能

是cout<<"Hello, World!";     o变0。

0
0
许孟星
许孟星
高级守护
高级守护

1.cout<<"Hello, World!";

2.return 0;

0
0
陈九林
陈九林
高级守护
高级守护
 #include <iostream>
 using namespace std;
 int main()
 {
 cout <<"Hello, World!";
 return 0;
 }
0
0
王祥润
王祥润
新手守护
新手守护

cout>>"Hello,world!";

>>错了,<<对的

return o;

o错了,0对的。

编译会有提醒。

0
0
0
0
黄硕梁
黄硕梁
初级天翼
初级天翼

向酷町问答第一个问题致敬

0
0
王彦博
王彦博
新手守护
新手守护

流符方向反了

应该是

cout<<"Hello,World!"<<endl;

 

0
0
0
李玥仑
李玥仑
中级光能
中级光能

1.

cout<<"Hello,World!";

2.

return 0;

3.

#include<iostream>
using namespace std;

0
0
董子墨
董子墨
中级天翼
中级天翼

cout流动符错了

返回值写错了

0
0
0
0
刘小禾
刘小禾
新手守护
新手守护

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

0
刘英杰
刘英杰
新手天翼
新手天翼

这是问答最早的问题吗?

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

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

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

cout<<

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

你是新手吧

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

#include<iostream>

using namespace std;

int main()

{

    cout<<"Hello, World!";

    return 0;

}

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

>>改成<<

return o改成return 0

0
0
0
胡家翊
胡家翊
高级守护
高级守护

讲两个点

1.">>'是"<<"

2."return o"是"return 0"

我要回答