I want to be able to create a multi-dimensional array that is 512*512 in dimension to represent the pixels in an image:
unsigned char myArray[512][512]
When I compile it (using Borland C++ 3.2) I get an error message saying array size too large. Is there any way I could get around this? Is there a way by using dynamic memory allocation?
Thanks in advance
unsigned char myArray[512][512]
When I compile it (using Borland C++ 3.2) I get an error message saying array size too large. Is there any way I could get around this? Is there a way by using dynamic memory allocation?
Thanks in advance