Wonder奇迹奇迹

导航

2015年5月19日 #

C++不用任何算术运算符实现整数加法

摘要: 这本是careerup的一道题,看到了以后自己做了一下,主要的难点就是加法里面的进位。直接上代码: 1 int add(int a, int b) 2 { 3 const int bitsize = sizeof(int) * 8; 4 int digit[bitsize] = {... 阅读全文

posted @ 2015-05-19 19:06 Wonder奇迹奇迹 阅读(657) 评论(0) 推荐(0) 编辑