Dynamic array in c++
Hi We do have to store pointers in memory.those pointers are of class objects.. As number of object to be created are not sure, we just declared pointer to array of 10 object pointers (10 for example). When we need to do delete specific pointer of class object (in fact specific pointer of class object stored in array ) , what should be done... ? How to maintain size? I mean deleted entry should allow me to store 1 new object pointer with capacity 10 only as one we already deleted from pointer to array of pointer. How to achieve this...? P.s. : no vector stl is to be used.. New cls; of class object pointer is used for each item.. to store 10 such pointer, we did malloc of 10 pointer type object. How to implement delete functionality ? Feel free to ask for query in case it is not clear.