您好所有能有人幫我這一段代碼怎麼做這個結構的代碼工作
struct
{
unsigned BLOCKDATA:16;
unsigned QUALCOUNT:4;
unsigned BLOCKTYPE:2;
unsigned BE:1;
unsigned Z:1;
unsigned SYN:1;
unsigned DOK:1;
unsigned BM:1;
unsigned SYNDROME:5;
}
RDSout;
我明白RDSout是一種結構和BLOCKDATA和QUALCOUNT等都是這種結構的元素,但我不明白是什麼BLOCKDATA的意思是前面的:16?
他們被稱爲位字段。 – cnicutar