std::abs 求绝对值函数
double abs (double x); float abs (float x); long double abs (long double x);
std::swap
交换两个变量的值
template <class T> void swap ( T& a, T& b ) { T c(a); a=b; b=c; }