标签:
(1)将指定的位置设为1value = value | ( 1 << bit_number)
value |= 1 << bit_number(2)将指定的位置清空value = value & ~( 1 << bit_number)
value &= ~( 1 << bit_number)
位操作
原文地址:http://www.cnblogs.com/rohens-hbg/p/5528066.html