Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

infinite array in c++

Name: cvtc user 2006-02-25 1:24

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: Anonymous 2006-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?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List