摘要: C++也可用于底层应用开发,甚至涉及到按位操作。 按位操作方式其实就两种:清零或置位,常用方式如下: class Test{public: static void ClearBit(unsigned& x, int bit) { //清零 x &= ~(1 << bit); } static voi 阅读全文
posted @ 2021-03-11 15:05 阿室安~ 阅读(290) 评论(0) 推荐(0)