Dynamic number of objects.

Hi. Im trying to make my first game into some kind of RPG but I have a little problem. I need dynamic number of items so they can be created or destroyed anytime during the game so I found out that pointer on array of objects in dynamic memory or linked lists (Im not sure if that is a correct translation) may work but Im not sure that array with dynamic number of objects is the right way to make this and I dont know much about linked lists. Can you please give me some kind of advice?
Last edited on
How about a deque?
http://cplusplus.com/reference/stl/deque/

-Albatross
Thanks, I will try it but it looks like I have to learn templates first.
Only really how to use them, not even how to create new ones from scratch.
templatename<type> naem;

-Albatross
Topic archived. No new replies allowed.