第一次学习c++编程,第一次谢有关c++的文章,作为一位即将3升4的小学生,若有不对的地方,请大家海涵!
题目内容:
编写一个能够输出 Hello,World!
的程序。
提示:
- 使用英文标点符号;
Hello,World!
逗号后面没有空格。H
和W
为大写字母。
样例 1 输入
无
样例 1 输出
Hello,World!
程序:
#include <iostream>
using namespace std;
int main ()
{
cout<<"Hello,World!"<<endl;
return 0;
}
运行结果:
Hello,World!
--------------------------------
Process exited after 3.425 seconds with return value 0
请按任意键继续. . .