使用Byte类型变量保存二进制
运算使用下面操作符
与 and
或 or
异或 xor

解决方案 »

  1.   

    可以将二进制转换成16进制运算方便一些,使用&hXX
    比如二进制的11011001表示为:&HD9
      

  2.   

    进制转化相关贴子:
    http://www.csdn.net/expert/topic/702/702004.xml?temp=.5143549
    http://www.csdn.net/expert/topic/670/670623.xml?temp=.1453516
    http://www.csdn.net/expert/topic/669/669329.xml?temp=.7846186
    http://www.csdn.net/expert/topic/668/668288.xml?temp=.5115167
    http://www.csdn.net/expert/topic/661/661706.xml?temp=.4214899
    http://www.csdn.net/expert/topic/658/658476.xml?temp=.3378717
    http://www.csdn.net/expert/topic/657/657002.xml?temp=.3998529
    http://www.csdn.net/expert/topic/635/635224.xml?temp=.7371942
    http://www.csdn.net/expert/topic/631/631897.xml?temp=6.342715E-02