class Solution {
public:
int add(int a, int b) {
int sumAB=0,carry=0;
while(b!=0){
sumAB=a^b; // 无进位求和
carry=(unsigned int)(a&b)<<1; // 进位
a=sumAB;
b=carry;
}
return a;
}
};