I am having trouble initializing a constant array of constant strings.
From week.h (showing only relevant parts):
class Week {
private:
static const char *const *days = { "mon", "tue", "wed", "thur",
"fri", "sat", "sun" };
};
When I compile I get the error "excess elements in scalar initializer". I tried making it type const char **, thinking I messed up the 2nd const placement, but I got the same error. What am I doing wrong?
static const char * days[] = {help or will it break your strings from being const?char*, then a C-array of C-strings must bechar**.