摘要:        
使用异或和与,模拟机器的加法。http://blog.csdn.net/htyurencaotang/article/details/11125415#include #include using namespace std; void add(int &sum, int &carry){ int a = sum ^ carry; int b = (sum & carry) > x >> y) { while (y != 0) add(x, y); cout << x << endl; } return 0;}    阅读全文
posted @ 2013-11-02 11:08
阿牧遥
阅读(227)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号