By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,652 Members | 1,905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,652 IT Pros & Developers. It's quick & easy.

"<vectors>"

P: n/a
Hello News-Group
what are the vectors
why and how we use them into "C++" Program
are the vector's "Array" or Containers ???
and how can we asign the value to the "<vector>"

Aug 4 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
an*******@gmail.com wrote:
Hello News-Group
what are the vectors
why and how we use them into "C++" Program
are the vector's "Array" or Containers ???
and how can we asign the value to the "<vector>"
vector is a *Container* works like an *Array*

How and why use vector, I think you better check it out in a textbook
Aug 4 '07 #2

P: n/a
an*******@gmail.com wrote:
Hello News-Group
what are the vectors
Get yourself a decent book on the C++ language. This is no way to learn
anything.


Brian
Aug 4 '07 #3

P: n/a

<an*******@gmail.comwrote in message...
Hello News-Group
what are the vectors
why and how we use them into "C++" Program
are the vector's "Array" or Containers ???
and how can we asign the value to the "<vector>"
If you will READ this NG, you will find many examples of 'std::vector'.

FAQ http://www.parashift.com/c++-faq-lite

Get "Thinking in C++", 2nd ed. Volume 1&2 by Bruce Eckel
(available for free here. You can buy it in hardcopy too.):
http://www.mindview.net/Books/TICPP/...ngInCPP2e.html

Dinkumware site:
http://www.dinkumware.com/manuals/.

--
Bob R
POVrookie
Aug 4 '07 #4

P: n/a

<an*******@gmail.comwrote in message
news:11*********************@e9g2000prf.googlegrou ps.com...
Hello News-Group
what are the vectors
The type 'std::vector' is one of several
container types provided by the C++ standard
library. It models a dynamically sizable array.
why
Use them if you want to store a collection of the
same type objects.
and how we use them into "C++" Program
Define a std::vector object, and use its member
functions to manipulate it. More specific details
are available in any good C++ text. See the reviews
at www.accu.org for recommendations.
are the vector's "Array" or Containers ???
See above.
and how can we asign the value to the "<vector>"
You can't. A vector can store zero or more objects
of the same type. Each of those objects would have
a value. The vector object itself doesn't have a
(meaningful) 'value'.

Get some books. Others have already mentioned the
C++ FAQ. Read that too.

-Mike
Aug 4 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.