I have a question. Is it possible to create dynamic array of pointers?I need to create array of pointers inside of class and the array will change in size.
Normaly i would have
where Unit is another class and then when i create array of size 2 i useCode:
now instead of Unit i would like *Unit how to do it?Code:
army = new Unit