1.如何在不使用第三个变量的情况 下交换变量值?
方法1int a = 3;int b = 4;a = a+b; //7b = a-b; //3a = a-b; //4方法2,int a = 3;int b = 4;a = a^b;b = a^b;a = a^b;方法3int a = 3;int b = 4;a = b+(b=a)*0;
2.