#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
******1
#include:
******2
iostream:
1. iostream 它是将iostream文件添加到程序中
2. iostream中包含了有关输入输出语句函数
******3
命名空间:标准的命名空间
using namespace std;
如果不写这句话的话,代码也可以如下写:
#include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}
******4