摘要: C++中的基础(内置)数据类型的转型没有失败的,顶多就是精度损失;至于自定义类型的转型,最好使用新式的转型风格,即 const_cast<T>(expression) //const与非const之间的转型 dynamic_cast<T>(expression) //多态转换 reinterpret 阅读全文
posted @ 2021-03-09 11:44 阿室安~ 阅读(558) 评论(0) 推荐(0)