类似这种运算的计算是:
a X= b;
等价于:
a = a X b;
#include
using namespace std;
void main()
{
unsigned a(0xad),b(20);
a&=b; // a = a & b;
a^=a; // a = a ^ a;
cout< int x(-3),y(5);
x>>y;
x<<=y; // x = x >> y;
x|=y^~y; // x = x | (y^~y);
y&=~x+1; // y = y & (~x + 1)
cout<system("pause");
}