随笔分类 -  cast

摘要:原文链接:http://www.cppblog.com/newcnzz/archive/2012/09/29/192428.htmlC++提供了四个转换运算符:const_cast <new_type> (expression)static_cast <new_type> (expression)reinterpret_cast <new_type> (expression)dynamic_cast <new_type> (expression)dynamic_cast: 通常在基类和派生类之间转换时使用; static_cast: 一般的转换, 阅读全文
posted @ 2012-10-07 05:54 wangkangluo1 阅读(775) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示