摘要:
#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<typeinfo> /* 1.3.6类模板成员函数类外实现 */ template<class T1, class T2> cla 阅读全文
posted @ 2021-04-18 14:12
yub4by
阅读(64)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<typeinfo> /* 1.3.5类模板与继承 当子类继承的父类是一个类模板时,子类在声明的时候,要指定出父类中T的类型 如果不 阅读全文
posted @ 2021-04-18 14:11
yub4by
阅读(93)
评论(0)
推荐(0)
摘要:
#include<iostream> #include<stdlib.h> #include<string> using namespace std; #include<typeinfo> /* 1.3.4类模板对象做函数参数 类模板实例化出的对象,向函数传参的方式 共有三种传入方式: 1. 指定传 阅读全文
posted @ 2021-04-18 11:19
yub4by
阅读(67)
评论(0)
推荐(0)

浙公网安备 33010602011771号