class A
{
public:
A();
private:
const int a = 4;//wrong, you can't init const data member, it only init in the init list(类的构造函数的初始化列表中)
const int a;
}
class A
{
public:
A();
private:
const int a = 4;//wrong, you can't init const data member, it only init in the init list(类的构造函数的初始化列表中)
const int a;
}