>I hope there is another way
There is! It's called the Standard Template Library. Using a vector of strings (both vector and string are STL classes) would do the trick very nicely. If you need to use native char arrays, then you could do this:
const int MAXSTRINGLENGTH = 256; //or whatever you want the maximum string length to be
const int MAXNUMBEROFSTRINGS = 10; //or whatever you want the maximum number of strings to be
char myArrayOfStrings[MAXIMUMNUMBEROFSTRINGS][MAXIMUMSTRINGLENGTH];
Lerner
Nearly a Posting Maven
2,382 posts since Jul 2005
Reputation Points: 739
Solved Threads: 396