What are the main difference between vector and CArray?
When I use vector and When CArray?
Printable View
What are the main difference between vector and CArray?
When I use vector and When CArray?
CArray is the MFC class, so you may end up forced into using that occasionally.
However, all your logic, whenever possible, should use vector in preference.
Thank You,
So I can use any of them?
You can use vector whenever you want. If you use CArray you'll have to include the whole MFC runtime.
Use CArray only when you already use MFC and you want to make use of the few MFC-specific features of CArray like serialization support. For everything else vector is better.
Thanks corned bee.
I am quiet confused in this thing.
collection,
map,
list,
array and vector
could u please explain?
Kedaman gave me this link a while ago:
http://www.sgi.com/tech/stl/index.html
all the info on the STL you need :)