class cTest
{
public:
const int NUM_PROTOCOLS=2;
const string Protocol[NUM_PROTOCOLS]={"TCPIP"
"MATIP"};
};
I'd like that every instance of this class has automatically this array.
It should be readonly. I don't know how to initalize it.
Do you have any idea? Or an alternative solution, without #define?
{
public:
const int NUM_PROTOCOLS=2;
const string Protocol[NUM_PROTOCOLS]={"TCPIP"
"MATIP"};
};
I'd like that every instance of this class has automatically this array.
It should be readonly. I don't know how to initalize it.
Do you have any idea? Or an alternative solution, without #define?