My studies in C++ have brought me to the subject of pointers and, more specifically, dynamic memory allocation. I understand that, given the declaration of a pointer beforehand, it can be used to dynamically allocate memory in items like arrays and such. I also understand this can happen with objects.
However, let's pretend I want to write a game, and in this game, I have enemies that randomly spawn with their own attributes depending on whether certain conditions have been met, and their numbers cannot be predefined. In this case, I would desirably use dynamic memory allocation. But how could I dynamically allocate a virtually unlimited number of these creatures, beings, anything? (I'm going to say I'd use a class for these creatures, of course, so that way all of their information is modulated in a sense when they are created as objects dynamically.)
Any help, tips, suggestions, clarifications, etc. would be appreciated. I've programmed things like Pong and a space shooter-type little game, so I'm not completely in the dark, but pointers are a little bit new to me. Thank you all for your time and help :]
Colton