Reallocate Memory
In my C++ programme I want to use dynamic array which will be modified easily.i.e. Consider the array of int datatype .Initially Its size is asked to user.If array becomes full and I want to add some more element how the size of that array will be increased.Please suggest some function in c++ which can do this.I know about New operator.Will it be used for reallocation of memmory i have doubt about it.
__________________
Busy Penguin
|