摘要:
从右起第一个为1的bit: a &-a; example: a = 4 //1100 -a= -4 //0011+1 = 0100 a&-a = 0100 ----------------------- ------------------------ 作用于bit的逻辑运算符: & // and 阅读全文
posted @ 2016-01-09 10:29
飞飞喵
阅读(200)
评论(0)
推荐(0)
摘要:
stack mystack; //createmystack.push(1); mystack.pop(); // no return valuemystack.size();mystack.empty(); //trueif theunderlying container's size is0... 阅读全文
posted @ 2016-01-09 04:55
飞飞喵
阅读(127)
评论(1)
推荐(0)
摘要:
C++ * 要写分号! * min/max函数只能比较两个数。 min(a,b,c) 会出错,要用 min(a,min(b,c)) * min/max的输入不能一个是sizetype, 一个是int * void move(stack<int> &s1, stack<int> &s2) 不加引用时是 阅读全文
posted @ 2016-01-09 03:03
飞飞喵
阅读(157)
评论(1)
推荐(0)

浙公网安备 33010602011771号