C++
未读
C++提高编程 模板
函数模板 函数模板语法 普通函数实现交换
void swap1(int &a,int &b)
{
int t=a;
a=b;
b=t;
}
void swap2(double &a,double &b)
{
double t=a;
a=b;
b=t;