摘要: C的所有强制类型转换(Type Cas t)都是:Type a = (Type)b C++提供了四种类型转换,格式:Type a = static_cast<TYpe> (b) static_cast:静态类型转换,例如将char转换int reinterpret_cast:重新解释类型,不同类型之 阅读全文
posted @ 2019-05-14 19:47 snowfox雪狐 阅读(150) 评论(0) 推荐(0) 编辑