RT我看到Delphi的代码貌似是这么写的,看不懂Delphi if ((MapBuf[i, j].BkImg and $8000) = 0)then true
MapBuf[i, j].BkImg是word型
BkImg: word对二进制的运算不懂,真心请教高人

解决方案 »

  1.   

    本帖最后由 caozhy 于 2011-07-28 01:10:13 编辑
      

  2.   

          int a = 100000;
          foreach(byte b in BitConverter.GetBytes(a))
          {
            Console.WriteLine(string.Format("{0:x}",b));
          }
      

  3.   

    位运算符参考 http://msdn.microsoft.com/zh-cn/library/6a71f45d%28v=vs.80%29.aspx