Look up the standard containers (std::vector, std::list, etc) for ways to manage collections of arbitrary sizes.

Strictly speaking, it is not possible to have no limit on the size. However,...