类私有成员后加:2是什么意思?
看一段代码:enum Core{Single, Dual, Quad};
enum Word{Bit32, Bit64};
enum HyperThread{Support, NotSupport};
class CPU
{
private:
unsigned frequence:32;
Core CoreType:3;
Words WordLen:2;
HyperThread mode: 2;//:2是什么意思?上面的又是什么意思?
};
在私有成员后加:3是什么意思?