union{ struct{ word XLength:8; word nouse:5; word datatype:1; word operation:2; }Sx; struct{ word XLength:5; word YLength:8; word datatype:1; word operation:2; }Sxy; word w; }UIndexType; 请问版主: 如上定义的一个联合,如果我给UIndexType.w=0x401e 那么UIndexType.Sxy.XLength=0x1e 但是UIndexType.Sx.XLength却等于0x40,这到底是怎么回事?我用的是CodeWarrior for hcs12 V4.7 |