一、函数模板 1、定义 template 返回值类型 模板名 (形参表){ 函数体 }; template T2 print(T1 arg1, T2 arg2){ cout<< arg1 << " "<< ar…