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;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/278991.html