void swap(int *a, int *b)
{
*a = (*a&~*b)|(*b&~*a);
cout << *a << " " << *b <<endl;
*b = (*a&~*b)|(*b&~*a);
cout << *a << " " << *b <<endl;
*a = (*a&~*b)|(*b&~*a);
cout << *a << " " << *b <<endl;
}
标签:有空,cout,int,void,C++,swap,神奇
来源: https://www.cnblogs.com/islch/p/16552778.html