Leonard

In theory, there is no difference between theory and practice. But, in practice, there is.

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

2009年3月8日

摘要: 转载自:http://blog.ednchina.com/wangxing/154537/message.aspxC语言的STRUCT提供了一种叫bit field的语法,可以根据需要决定成员占用某字节的从X位到Y位,例如,下面一个结构:struct tagtest{char a:4; char b:2; char c:2;};这个定义的含义是整个结构是一个字节长度,成员a占4位,b占2位,c占2... 阅读全文
posted @ 2009-03-08 13:37 Leonard Tse 阅读(453) 评论(0) 推荐(0)