my private members in my class:
const char arr1[];
const char arr2[];
my constructor:
className(const char a[], const char b[])
:arr1(a), arr2(b)
{
}
The error message from console window is:
In constructor className::className(const char*, const char*):
error: incompatible types in assignment of const char* to const char [0]
Please help, what am I doing wrong?
On a side note, I found a solution... I used pointers as my private member vars, so *arr1 and *arr2 and that worked. :)