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.
2008 April 30th Wednesday (四月 三十日 水曜日)
最新推荐文章于 2022-05-22 23:17:49 发布