题目:
[my0007]
刚刚我们学习了C++程序的基本框架和cout语句,我们现在来使用它们吧。我们要输出 “hello world”。
首先我们要写下C++程序的基本框架:
![xxx](https://img-blog.csdnimg.cn/img_convert/3466ce8b23041fa8b86a927bc1121c09.png)
输入:
无
输出:
hello world
解答:
学会cout语句是本题的关键
代码:
#include <iostream> //头文件
using namespace std; //命名空间
int main() //主函数
{
cout << "hello world"; //注意输出流方向
return 0; //程序运行完返回0,表示正常结束
}