View Single Post
  #8 (permalink)  
Old 09-14-2008, 09:30 PM
dcs dcs is offline
Programming Expert
 
Join Date: Mar 2008
Posts: 371
Credits: 0
Rep Power: 7
dcs has a spectacular aura aboutdcs has a spectacular aura about
Default Re: Reallocate Memory

Quote:
Originally Posted by WingedPanther View Post
A better option is to use a vector instead of an array. You can indicate the initial size, and it will automatically grow as needed if you exceed that size. That will remove the need to handle memory allocation yourself.
Aye.
Reply With Quote