版权声明:本文可能为博主原创文章,若标明出处可随便转载。 https://blog.csdn.net/Jailman/article/details/85091025
int a = 1;
int b = 2;
cout << "a: "<< a << endl;
cout << "b: "<< b << endl;
a = a ^ b;
b = a ^ b;
a = a ^ b;
cout << "a: " << a << endl;
cout << "b: " << b << endl;