I'm writing a 3D game. I need to be able to save variable no. of polygons in every sector. Hence, I think I will be storing them in some kind of list.
or may I create my own list class, for which i require to know how to redimensionalize an array/dynamically or whatever, without destroying the data it already contains?
if i have an array which has got five integers in it.
int *a=new int ;
now if i want to store another integer in the same array ??? what do i do ?
the proposed way should b quick .... plz help