K
Kyle
Hi,
Is it possible to initialize a constant memeber array in a class?
I tried several syntax but all failed.
class A
{
public:
A();
~A();
private:
const int a[4];
};
A::A():a={0,1,2,3}
{
}
Is it possible to initialize a constant memeber array in a class?
I tried several syntax but all failed.
class A
{
public:
A();
~A();
private:
const int a[4];
};
A::A():a={0,1,2,3}
{
}