/the first c++ program/
#include “iostream”
//头文件
//#后面是预处理文件
//include为包含文件,指将<>文件加载到这个位置
//自己写的头文件使用""
using namespace std;
/名字空间,这里说明凡是需要用到标准C++库里的东西都要这个名字
空间std/
//main function
int main(){
cout << “Hello word!” << endl;
cout << “this is my first c++ progrsm! \n” ;
}
C++学习心得DAY 1
最新推荐文章于 2024-07-27 21:19:51 发布