函数模版 发表评论 //7-2 函数模板 #include using namespace std; template void Swap(T & x, T & y) { T tmp = x; x = y; y = tmp;