//头文件
#include <iostream>
//标准命名空间.cout cin endl 是在命名空间 std 中定义的。
using namespace std;
//主函数
int main()
{
//int变量,n左值,=数字运算符,1条件。变量名只能有字母·数字·下划线,不能用数字开头,名字不能有空格
int n = 1;
//cout输出 << 内容 << endl换行
cout << n << endl;
//return返回值
return 0;
}
c++结构部分解析
最新推荐文章于 2024-07-25 23:49:52 发布