a,b交换
int a,b; a=a^b; b=a^b; a=a^b //这样ab的值就交换了
有趣的代码实例
原文:http://www.cnblogs.com/Coder-Pig/p/6655407.html