Hi,
I have a header file with a declaration like this:
then in the cpp file I want to have something like this:Code:class MyClass { char ch_map[][4]; }
but obviously I can't redeclare ch_map in the cpp file. What's the best way to initialize the ch_map array within the constructor?Code:#include "header.h" MyClass::MyClass () { char ch_map = {"abcd", "efgh", "ijkl"}; }
Thanks