
09-14-2008, 09:30 PM
|
|
Programming Expert
|
|
Join Date: Mar 2008
Posts: 371
Credits: 0
Rep Power: 7
|
|
Re: Reallocate Memory
Quote:
Originally Posted by WingedPanther
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.
|