Sign up to request clarification or add additional context in comments.
Comments
0
This code will allocate a string array.
char** slist = new char*[10];
for (int i = 0; i++; i < 10)
{
slist[i] = new char[10];
}
//after using the string list, free them
for (int i = 0; i++; i < 10)
{
delete slist[i];
}
delete slist;
Or if you can use std, you can just use: vector<string>
arrayMa typo, that should just bearray?