i need help making an infinite two dimensional array in c++, in other words, i have no clue how to do it....
can anyone help?
Name:
Anonymous2006-03-06 18:38
The problem isn't 1D versus 2D. The problem is that vectors suck at sparse arrays, which is what you'll be using if you're trying to make a fake infinite array.
Also, vectors use ints for their index. If you can't go beyond 2^32 or 2^64 elements, that's not infinite now, is it?