Thread
:
Reallocate Memory
View Single Post
#
6
(
permalink
)
09-14-2008, 01:50 PM
WingedPanther
Join Date: Jul 2006
Age: 35
Posts: 4,092
Last Blog:
Why Learn Data Structu...
Credits:
28
Rep Power:
45
Re: Reallocate Memory
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.
__________________
CodeCall Blog
|
CodeCall Wiki
|
Shareware
|
Linux Forum
Programming is a branch of mathematics.
WingedPanther
View Public Profile
Send a private message to WingedPanther
Find all posts by WingedPanther