C++中类型的强制转换分为以下四种: 1、static_cast<T>(expr); 2、reinterpret_cast<T>(expr); 3、const_cast<T>(expr); 4、dynamic_cast<T>(expr); 其中前三种为编译时检……