Original Post
i'm trying to create a 1024 x 1024 array of unsigned char .. can someone check if i'm doing it right ?
both width and height are 1024.. and if i want to clean up the memory how would i do it ?
for (int Clean = 0; Clean < Width; Clean++)
delete [] Data[Height];
?? thx alot
[edited by - Metal Typhoon on May 22, 2003 1:29:54 PM]
unsigned char** Data;
Data = new unsigned char* [Width];
for (int Make = 0; Make < Width; Make++)
Data[Make] = new unsigned char [Height];