   Frame Work
  im creating a direcx frame work so i wanna make a mesh class lets call it XMesh then create a call back function named XRender is called every time the app loops and there is no msgs and its able to render i wanna have an array of pointers to that class to contain a pointer to every instant of XMesh created and i want to Resize it every time the user creates another instant of the class so the whole deal here is how to resize an array   
  If you used a linked-list of of pointers to the XMesh instances then to add you just create a new instance and add onto the end of the linked list.This is a classic case of where a linked-list is superior to an array.If you really want to use an array though, I suggest you look into the stl::vector which is somewhat like a dynamic array.   ;  k i kinda considered linked lists but just wanted to see how far i can go with arrays k in terms of speed and memory usage which would be the better choice   ;  If you really want to make a dynamically sized array make your own template class, something like the following (in use):MyDynamicArray<XMesh*> mesh_array;The "MyDynamicArray" starts off with an initial array allocated on the heap of a certain size.  As you add elements, check when you've maxed out the array.  When you do, allocate a larger array of the same type, copy the entire contents of the first (smaller) array into the big one, delete the old one, and you're on your way.  But then after all that is said and done, you may as well use stl::vector, since it does essentially the same thing :)   ;  i have done exactly that but i dropped the template thing cuz i want a pointer to an array of pointers so if i did it with a template it would look something like thistemplate <typename T>void redim( T k , int howbig){int x;T * temp = new T[howbig] // where T here is a pointer to an array of pointers to XMesh so temp would be a pointer to an array of pointers to an array of pointers to XMesh which is a really big mess}   