1.
template<class T>
void tmp( T array, int size)
{
cout<< array<<endl;
cout<<size<<endl;
}
template <class TT>
void tmpt(TT a, TT b)
{
}
double tmpd = 9;
float tmpf;
char tmpc;
tmp(tmpd,'c');
// 9
// 99 ‘c’的ASCII码
tmpt(tmpd, tmpf);//编译会出错。找不到匹配模板创建函数