摘要: 类模板与函数模板的区别 类模板与函数模板 阅读全文
posted @ 2021-07-29 11:02 卿源 阅读(210) 评论(0) 推荐(0)
摘要: 类模板: 指定多个类型的T(现举两个) template<class typename,class typeage,class...> eg:创建一个Person类 class person { public: person(typename name,typeage age) { this->na 阅读全文
posted @ 2021-07-29 10:31 卿源 阅读(67) 评论(0) 推荐(0)