1.基本数据类型强制转换static_cast<new type>(var); 2.去掉const 属性const_cast 3.强制指针转换reinterpret_cast 4.类指针转换dynamic_cast 代码: