I want to get this out of the way. It may sound stupid, but I always end up doing it wrong and causing all sorts of problems.

How do I make an array with an unlimited amount of elements.

Thanks

02-06-2003

LuckY

You can't. To create a static or even dynamic array you have to specify the size.
If you want to have a container that can hold an "unlimited" (which of course is not possible because you can always run out of memory :) ) number of elements, you can use a linked list or other such data structure.

02-06-2003

hk_mp5kpdw

Use one of the provided STL containers, probably a vector would be best for you. For example...