Jan 17, 2009

What’s the difference between a vector and an array

What’s the difference between a vector and an array
Vector is STL container, we have a lot of member functions to support vector container, such as length(), push_back() and pop(). And vector supports automatic memory management, and vector is synchronized, which means the thread safe.
Array does not support

No comments:

Post a Comment