2008 April 30th Wednesday (四月 三十日 水曜日)

Tomorrow is labor day.  Due to legislate the new law from this year the original golden week of labor week was abolished.  The holiday is shortened for three days. I wish to go back to Wuhan.  The last summer Lack Tai gave me an impression so deeply.   This year the summer is just coming, there are reported that the blue algae in Lake Tai burst out again.   The beautiful and peaceful Wuxi was passed, and it never come back.  The new Wuxi substituted for the old is with worst environment and snobbish citizen.  For money, Wuxi lost many invaluables. dynamic_cast   In general, the expression   dynamic_cast<Type *>(pt)   converts the pointer pt to a pointer of type Type * if the pointed-to object (*pt) is of type Type or else derived directly or indirectly from type Type. Otherwise, the expression evaluates to 0, the null pointer.   The purpose of this operator is to allow upcasts within a class hierarchy (such type casts being safe because of the is-a relationship) and to disallow other casts.   The RTTI (runtime type information) features allow a program to detect the type of an object. The dynamic_cast operator is used to cast a derived class pointer to a base class pointer; its main purpose is to ensure that it's okay to invoke a virtual function call. The typeid operator returns a type_info object.  Two typeid return values can be compared to determine if an object is of a specific type, and the returned type_info object can be used to obtain information about an object.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值