用位运算计算两数的和 文章目录 用位运算计算两数的和 方法一: 方法二: 方法一: //方法一: //sum为计算结果 //carry为进位 int bitAdd(int a, int b) { if (b == 0