摘要: C语言中我们使用 int a=(int) b;的方式强制转换 C++提供了四种类型转换方式 const_cast 通过const_cast运算符,也只能将const type转换为type,将const type&转换为type&。 也就是说源类型和目标类型除了const属性不同,其他地方完全相同 阅读全文
posted @ 2022-11-30 10:22 Hello_Bugs 阅读(147) 评论(0) 推荐(0) 编辑