The beauty of the C++ language is that it provides a wide selection of "container classes" which you can "simply use." So you really don't need to bother with, say, rolling your own linked-list. ("Do not do a thing already done ...")
Furthermore, many of these container classes provide "[
array index]
" capability so that you can reference the contents as an ordered collection, as though it were a traditional "array," even though it actually isn't. They may also provide other options such as retrieving an element by some kind of key.
Simply browse through the set of container classes that are available in your particular C++ implementation and grab the best one for your needs, "right off the shelf." No implementation required. You simply know that they do work, and that you really don't have to care how they work.