一、关键字

常用语法
#include<iostream>
using namespace std;
// 全局常量
#define DAY 30
void main()
{
	/*
	* 变量与输出
	*/
	// 局部常量
	const int year = 2023;
	// 控制台输出
	cout << "hello world" << endl;
	cout << "天:" << DAY << "\n" << "年:" << year << endl;
	system("pause"); // 暂停程序
	// short:2字节 int:4字节 long:windows4字节,Linux(32位:4字节 64位:8字节) long long:8字节
	// short 2字节 最大为2^15 - 1 = 32767(最高位为符号位),如果超出范围就会循环显示
	short count = 32768; // 显示 -32768(-0)
	// sizeof(数据类型或变量) 获取某个数据类型或变量所占内存大小
	sizeof(long);
	int size = 0;
	sizeof(size);
	
}
TODO





![[ubuntu]ubuntu设置虚拟内存](https://img-blog.csdnimg.cn/f361ea3758bb4d9dab55d713413d60ca.jpeg)













