|
-
Feb 6th, 2003, 09:39 PM
#1
Thread Starter
Addicted Member
diff between vector & CArray
What are the main difference between vector and CArray?
When I use vector and When CArray?
-
Feb 7th, 2003, 05:49 AM
#2
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Feb 8th, 2003, 12:12 AM
#3
Thread Starter
Addicted Member
Thank You,
So I can use any of them?
-
Feb 8th, 2003, 07:10 PM
#4
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Feb 10th, 2003, 09:38 AM
#5
Thread Starter
Addicted Member
Thanks corned bee.
I am quiet confused in this thing.
collection,
map,
list,
array and vector
could u please explain?
-
Feb 10th, 2003, 01:54 PM
#6
Frenzied Member
Kedaman gave me this link a while ago:
http://www.sgi.com/tech/stl/index.html
all the info on the STL you need
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
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
|