One syntax error. And don't forget to free that. And it should be char[9] for the terminating NUL.
C++:
Code:
// 8 characters long - dont know how many
char *myString[9];
// know how many - stored in intHoweverMany!
myString = new char[9][intHoweverMany];
// ...
delete[] myString;
Better C++:
Code:
#include <string>
using namespace std;
string *myString;
myString = new string[numStrings];
// ...
delete[] myString;
And if the number of strings could change afterwards (or you have to just read string by string and don't know when you come to the end):
Code:
// This line is only for MSVC++
#pragma warning(disable: 4786)
#include <vector>
#include <string>
using namespace std;
typedef vector<string> strvec;
strvec myString;
// e.g.
myString.push_back("Hello, World!");