c ++中的类型转换差异 [英] type cast differences in c++

查看:50
本文介绍了c ++中的类型转换差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么区别?

 static_cast< new type> 
,const_cast< new type> ;,reinterpret_cast< new type>和(新类型)

解决方案

收集这些类型的演员表的所有解释,例如: a href =http://www.cplusplus.com/doc/tutorial/typecasting> http://www.cplusplus.com/doc/tutorial/typecasting [ ^ ]。



-SA

what are the differences between ?

static_cast <new type>
, const_cast<new type>,reinterpret_cast <new type> and (new type )

解决方案

All the explanations of these types of cast are collected, for example, here: http://www.cplusplus.com/doc/tutorial/typecasting[^].

—SA


这篇关于c ++中的类型转换差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆