class MyTestClass
{
public:
MyTestClass() : m_ciInt(1) {} // const成员变量,在ctor参数列表中初始化
private:
const int m_ciInt;
static int m_siInt;
const static int m_csiInt;
};
int MyTestClass::m_siInt = 1; // static成员变量,在外部初始化
const int MyTestClass::m_csiInt = 1; // const static/static const成员变量,在外部初始化