不声明第三个变量交换两个同类型数的值 若x != y,则: x = x ^ y ^ x; void inplace_swap(int *x,int *y){ *y = *x ^ *y; *x = *x ^ *y; *y = *x ^ *y; }