跳转到内容

变量 ​

变量是具有名称的存储位置。声明变量时需要指定类型,并建议在声明时完成初始化。

cpp
int count{0};
double price{19.9};
const bool enabled{true};

子主题 ​