会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
封狼居胥
博客园
首页
新随笔
联系
订阅
管理
2021年2月8日
C++类型转换
摘要: C++有4种类型转换,分别为:const_cast,static_cast,dynamic_cast,reinterpret_cast;下面结合代码分别介绍4种类型转换。 const_cast: 去掉类型的const属性,将const变量转为非const变量; 1 const int a; 2 3
阅读全文
posted @ 2021-02-08 21:42 封狼居胥!
阅读(282)
评论(0)
推荐(1)
编辑
公告