Hi
I am current ly using dynamically allocated pointers in a little simulation I am coding .
What it does is initialize a position and creates a new instance.Code:pos.Initialize(3,0,3); TEnt* a=new TEnt(pos);
I now want to test my simulation with a large number of entities in which case it becomes hard for me to instance it one by one
How does a array of pointers work. Can someone give me a example ?
(I need to have a randomly choosen position for each of the entity )




Reply With Quote