That sounds reasonable.
Type: Posts; User: codegeru
That sounds reasonable.
Yap, that will be a good alternative for the const array purpose in class.
But the original problem still remains. Dose C++ allow the normal const array as the class member?
I agree for the explanation for
const string* stack[size] .
Actually it create a normal array, not a const array. The only special thing is the elements of the array are pointers to const...
I am reading Thinking in C++, and meet a very strange problem regarding const array initialization. The content can be referred to page 356 and 357, for code C08: StringStack.cpp.
part of the...