C++ vector type

M

Marduk

I'm learning c++ and I don't understand what are vectors in c++. Any
pointers to external help, or even better, if you can help me know what they
are (haven't found much docu)

Thanks in advance
 
P

Peter van Merkerk

Marduk said:
I'm learning c++ and I don't understand what are vectors in c++. Any
pointers to external help, or even better, if you can help me know what they
are (haven't found much docu)

Consider vectors as arrays on steroids. With std::vector dynamic
resizing, inserting and removing elements...etc is much easier than with
arrays. The documentation that came with of your compiler and/or library
implmentation should discuss this and so should the book you are using
to learn C++.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,351
Latest member
LolaD32479

Latest Threads

Top