Sunday, May 25, 2008

<< >>左移右移·

<<左移或>>右移

左移相当于乘以2的n次方
右移相当于除以2的n次方
左右移位后原值不变,如想变化则:b = b<<1;

如果想把负数移位后变正数则用<<< or >>>

No comments: