|
-
May 10th, 2006, 11:13 AM
#2
Re: array vs vector
I guess it has something to do with initilization of integer.
std::vector will initilize it with ZERO but the traditional array will not
>>With such a difference, I guess people only use std::vector when they >>need features such as insert?
your forgetting about the memory management. Vector will take care of all memory allocation & deallocation for you.
Vinod
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|