C ++ 03: Type Conversion

I. Introduction

 

二.static_cast<>

 

 

三.dynamic_cast<>

dynamic_cast has the function of type checking, and more secure than static_cast

 

四.RTTI(Run Time Type info)

RTTI storage class information, information for identifying at runtime class of the object

C ++ typeid a key which provides a data type header file corresponding typeinfo.h typeinfo

 

Guess you like

Origin www.cnblogs.com/k5bg/p/11457421.html