killsto wrote:

Just curious, is there another way? How would I do this in c++ which
is listless IIRC.

If you do not have 0) built-in expandable arrays, as in Python, one can

1) program (or find) the equivalent of Python lists;
2) use linked-lists (as long as one does not need O(1) random access);
3) pick a maximum number of items, either for the app or for the run, and allocate space for that.

Python enthusiasts include those who see the virtue of option 0).

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to