跳转到内容

整数类型 ​

整数类型用于表示没有小数部分的数值。C++ 提供不同宽度的有符号和无符号整数类型。

cpp
short small{12};
int count{100};
long long distance{9'000'000};
unsigned int flags{0U};