本文主要是介绍C++ 01 之 hello world,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
c01helloworld.cpp
#include <iostream>using namespace std;int main()
{cout << "hello world" << endl;return 0;
}
- #include<iostream>; 预编译指令,引入头文件iostream.
- using namespace std; 使用标准命名空间
- cout << “hello world”<< endl; 和printf功能一样,输出字符串”hello wrold”
这篇关于C++ 01 之 hello world的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!