首先我们来创建一个类模板
template<class T1, class T2>
class person
{
public:
person(T1 name , T2 age)
{
m_name = name;
m_age = age;
}
void showperson()
{
cout << m_name << " " << m_age << endl;
}
T1 m_name;