Hello, thanks for taking the time to read.
What is the best way for creating a 2 dimensional array.
i have a char set up using:-
unsigned char ** array;
and then allocated it using:-
array=new unsigned char*[x];
for(int j=0; j<x;j++)
*(array+j)=new unsigned char [y];
is there an easier way??
thanks in advance
What is the best way for creating a 2 dimensional array.
i have a char set up using:-
unsigned char ** array;
and then allocated it using:-
array=new unsigned char*[x];
for(int j=0; j<x;j++)
*(array+j)=new unsigned char [y];
is there an easier way??
thanks in advance