dynamics_cast<>】的更多相关文章

#include <iostream> class A { public: A(){} ~A(){} ;} }; class B:public A { public: B(){} ~B(){} ;} }; class C:public A { public: C(){} ~C(){} ;} }; class D:public C { public: D(){} ~D(){} ;} }; int main() { std::cout<<"dynamic_cast begin…