作用: 用于记录程序中不可改变的数据

  1. 定义常量的方法 ```cpp

    include

    using namespace std;

//定义宏常量

define day 7; // 一个星期7天

//修饰变量的常量 const int day = 7;

int main{} ```