我想提取十进制数的位.
例如,7是二进制0111,我想得到0 1 1 1存储在bool中的所有位.我怎么能这样做?
好的,循环不是一个好选择,我可以为此做点什么吗?
c bit-manipulation
bit-manipulation ×1
c ×1