结构体中的冒号

连接位域名(变量名)与位域大小(变量占位大小,按位计算)

struct 位域结构名
{ 位域列表 };
其中位域列表的形式为: 类型说明符 位域名:位域长度
例如:
struct bs
{
int a:8;
int b:2;
int c:6;
};

https://blog.csdn.net/cyhleo/article/details/6845462

猜你喜欢

转载自blog.csdn.net/ts1130/article/details/80305814