[转]用异或交换两个整数的陷阱 当两个数相同的时候,要注意了, a ^= b b ^= a a ^= b 会使两个数都变成0 详见下面的链接, http://blog.chinaunix.net/uid-1844931-id-3034714.html