How can you define a static character pointer array in C++?
ex:
class tmp {
private:
static const char *ARR[];
};
const char *tmp::ARR[] =
{
"nts1", "nts2", "nts3"
}
--- This doesn't compile for me, even if I switch it to use two *'s and
abandon the [].
---
However, this is valid:
static const char *ARR[] =
{
"nts1", "nts2", "nts3"
}
This will work, but I would like to know how to embed the declaration
inside a class.
Thanks,
--Dominic