摘要: #include <iostream> #include <typeinfo> int main() { int i; const std::type_info &info = typeid(int); std::cout << "typeid " << info.name() << std::en 阅读全文
posted @ 2022-08-17 08:40 thomas_blog 阅读(28) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> class Base { public: Base() { func(); } ~Base() { func(); } virtual void func() { std::cout << "Base func" << std::endl; } }; clas 阅读全文
posted @ 2022-08-17 07:48 thomas_blog 阅读(18) 评论(0) 推荐(0) 编辑