摘要: #include <iostream> template<class typeName> class Person { public: Person(typeName name); void show(); protected: typeName m_name; }; template<class 阅读全文
posted @ 2022-07-21 08:19 thomas_blog 阅读(33) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <typeinfo> template<class typeName> class Person { public: Person() { std::cout << "typeName数据类型 " << typeid(typeName).na 阅读全文
posted @ 2022-07-21 07:53 thomas_blog 阅读(27) 评论(0) 推荐(0) 编辑