C++ newbie.
I have following class and its argument is char*,
How do I copy that to member variable char* ?
After that I need to know the size of array ?
class TestParam {
public:
char*[] arr;
TestParam (const char* Pre, char* Post[]){
arr = Post;
}
};
....
TestParam testParam[1] = { TestParam ("aa", (char*[]){"bb","cc","dd"})};
I know about std::string but I had to use char* because I am initializing the object like above in my code. Is it possible by std::string ?
std::string, then read aboutstd::vector.