目录一、自动转换(隐式转换)1. 通过构造函数实现自动转换2. 注意事项二、强制类型转换(显式转换)1. C风格的强制类型转换2. static_cast3. dynamic_cast4. const_cast5. reinterpret_cast三、注意在C++中,类的自