摘要:
typedef unsigned long int NUM;#include using namespace std;NUM x;cout << typeid(x).name();//输出x的类型 阅读全文
posted @ 2016-01-01 23:43
喵小喵~
阅读(251)
评论(0)
推荐(0)
摘要:
int add(int a, int b){int wei = 0;int jinwei = 0;do{wei = a^b;//处理位加法jinwei = (a&b) << 1;a = wei;b = jinwei;} while (b != 0);return a;}两个数相加=两个数亦或(相当于... 阅读全文
posted @ 2016-01-01 23:35
喵小喵~
阅读(244)
评论(0)
推荐(0)

浙公网安备 33010602011771号