变量和常量
变量的定义方式
类型 名字 {初始值}; 或者 类型 名字 = 初始值;
int test {0}; int test = 0;
常量的定义方式
const 类型 名字 {初始值}; 或者 类型 const 名字 {初始值};
const int test {0}; int const test {0};
define 名字 值
#define test 0
变量的定义方式
类型 名字 {初始值}; 或者 类型 名字 = 初始值;
int test {0}; int test = 0;
常量的定义方式
const 类型 名字 {初始值}; 或者 类型 const 名字 {初始值};
const int test {0}; int const test {0};
#define test 0