ya, i dun have infinite amount of memory, instead a limited one.
I wanna use an array to record the repeat number of certain value, e.g.:
0 0
1 0
2 0
3 0
...
51 10
52 22
...
60 5
61 9
...
83 0
84 0
those numbers with ... have 0 possibilities.
Since 84 numbers are taken into consideration, there are 84 spaces that have to reserved for them.
However, numbers with 0 possibilities, e.g. 0-51, 53-59 and 62-82, are not needed, so the extra 80 spaces will be a waste, since i have a limited memory system. Hence i need an infinite array.
So, niek_k, u mean, in my condition, infinite array will not be a good condition for me, right?
Thanks, bugmenot, I'll try the vector out.
Thanks for the suggestion.