摘要:
#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
阅读(35)
评论(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
阅读(26)
评论(0)
推荐(0)

浙公网安备 33010602011771号