跳转到内容

基本类型 ​

C++ 基本类型用于表示数值、字符和逻辑状态。类型决定了值的可用操作和存储方式。

cpp
int age{18};
double temperature{36.5};
char grade{'A'};
bool ready{true};

子主题 ​