Oh right, you have a const array too...
Hmm...
I found this on google.
Oh right, you have a const array too...
Hmm...
I found this on google.
Declare in your class:
static const int arr[];
and in your cpp file:
const int MyClass::arr[] = { 1, 2, 3 };
Ha!
salubrious, dude!
that'll do, nicely.
thanks
K
Bookmarks