I have an array.
char tab[200];
and then I want to create array which consists pointers to the previous array elements
char** t = new (char*)[LENGTH];
but i do get
C:\Users\Duke\Desktop\PJC3\main.cpp|37|error: array bound forbidden after parenthesized type-id|
How should I declare it DYNAMICALLY?
EDIT: Is that correct pointing to corresponding elements of the tab array?
char** t = new char*[dlugoscTab];
for(int i = 0; i < dlugoscTab; i++){
*(t + i*sizeof(char)) = (tab + i*sizeof(char));
}
std::vector<char*> t(LENGTH, nullptr);