Hi.
I have problem with initialize array class member as under:
class MyClass
{
public:
MyClass();
~MyClass();
protected:
std::string commands[]; // array of commands
};
std::string MyClass::commands[]={"first","second","third"};
How can I do something like above ???
Thx for help
I have problem with initialize array class member as under:
class MyClass
{
public:
MyClass();
~MyClass();
protected:
std::string commands[]; // array of commands
};
std::string MyClass::commands[]={"first","second","third"};
How can I do something like above ???
Thx for help