指定位置置1
value = value | 1 << bit_postion
value != 1 << bit_postion
指定位置置0
value = value & ~(1 << bit_postion)
value &= ~(1 << bit_postion)
位运算的基本操作
猜你喜欢
转载自blog.csdn.net/qq_34595352/article/details/89015669
今日推荐
周排行