Ok so this may be an odd problem but here is what I need to accomplish.
So, I have a struct called enemy
and I want the user of my program to be able to determine how many enemies he wants, so if the user enters 5 at run time I need to create 5 enemy's.Code:struct enemy { int health; int damage; }
enemy Enemy1;
enemy Enemy2;
enemy Enemy3;
...
...
how would I do this?
I will also need to take these enemys and add them to a list, for example if Enemy2 dies I need to add Enemy2 to a dead list. Thank you so much for the help.