C++ 中的数据类型主要可以分为以下几类: 1. 基本数据类型 整型 (int): 用于存储整数。 #include <iostream> #include <limits> // 用于获取整型的范围 int main() {