这个问题网上答案很多,还是要参考官网为准。
网址如下:http://www.cplusplus.com/doc/tutorial/typecasting/
有时间把官网内容整理下,加深自己的理解,也方便同行参考。