delete some part of an Dynamic array

Hi ,

How can I delete some part of an Dynamic array ?
I create ed a dynamic array :
class User **User_list;

and in the middle of my Program I want to delete some element in array . for example I want to delete
User_list[3],User_list[7],User_list[56],User_list[300],...

My purpose is to free some memory .

I think you should look for STL lists http://www.cplusplus.com/reference/stl/list/
Topic archived. No new replies allowed.