struct tagAAA
{
unsigned char ucId: 1; // 1
unsigned char ucPara0: 2; //
unsigned char ucState: 6; // 1
unsigned char ucTail: 4; // 1
unsigned char ucAvail; //
unsigned char ucTail2: 4; // 1
unsigned long ulData; // 4
}AAA_S;
1 + 1 + 1 + 1 + 4 = 9
struct tagAAA
{
unsigned char ucId: 1; //
unsigned char ucPara0: 2; //
unsigned char ucState: 6; // 4 字节
unsigned char ucTail: 4; //
unsigned char ucAvail; //
unsigned char ucTail2: 4; // 4 字节
unsigned long ulData; // 4 字节
} AAA_S;
4 + 4 + 4 = 12
[[italic] 本帖最后由 cosdos 于 2007-11-27 16:36 编辑 [/italic]]