参考来源:http://www.cnblogs.com/liunianmoshi/p/mianshi.html
很少留意异或的用法,可能是我基础比较薄弱,不过见到这个真是发现个新方式。
static void Main(string[] args) { int numA = 321; int numB = 8765; numA = numA ^ numB; numB = numB ^ numA; numA = numA ^ numB; Console.WriteLine(numA); Console.WriteLine(numB);
}