class Solution { public: int Add(int num1, int num2) { while(num2!=0){ int t1,t2; t1=num1^num2; t2=num1&num2; num1=t1; num2=t2<<1; } return num1; } };