2014年11月25日

C++ 类型判断 typeid

摘要: class A{ virtual void f(){};};class B: public A{}; 在main方法中验证 Person* p = new son(); if (typeid(*p) == typeid(son)) { std::cout << "equal" << std::end... 阅读全文

posted @ 2014-11-25 20:15 大大世界 阅读(432) 评论(0) 推荐(0) 编辑

导航