Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以这两个位集为例:
1 1 0 0 1 0 0 1
我怎样才能得到以下结果:
0 1 0 0
从我的角度来看,这种逻辑运算必须是减法但省略了借位。
是否有可能进行简单的逻辑运算来获得该结果?
提前致谢。
只有当A为真且B为假时才为真。所以可以解决为 A & ~B
A
B
A & ~B