I have a small C++ program that requires a large 2d array.
int distanceArray[282][9900000];
I am aware that a standard 32 bit console appli
As suggested by MSalters, an std::vector
was definitely the way to go.
For anyone who is still having this problem, here is how I initialized it:
std::vector> distanceArray(282, std::vector(9000000, -1));
9,000,000 columns are created within every row of 282 items, and each value is initialized to -1 at the start.
Thanks to everyone who commented for the help!