View Single Post
  #1 (permalink)  
Old 09-14-2008, 11:55 AM
gamiR's Avatar   
gamiR gamiR is offline
Learning Programmer
 
Join Date: Aug 2008
Location: Nashik,Maharashtra,INDIA
Posts: 88
Credits: 2
Rep Power: 2
gamiR is on a distinguished road
Exclamation 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
Reply With Quote

Sponsored Links