You can't declare an array as T array[];
The size has to be known at compile-time, otherwise sizes can't be calculated, so there are only two valid array declarations:
1 2
T array[k];
T array[]={...};
The second form can't be used for members except in this case:
1 2 3 4
struct A{
staticconst T array[];
};
const T A::array[]="...";
Thanks ..
I understand now about why that format couldn't be as a member since that would make that structure of variable size ..
I don't understand the second form you mention. I am new to C++. Is that second form you mention is a further topic in C++ (template??) .. If so for now i will ignore that (havent reach reading that topic yet). :OP Please advice. Thanks