473,394 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

"<vectors>"

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
4 1406
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
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

<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

<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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sean Dettrick | last post by:
Hi, I have several <vector>'s of the same length, with entries as follows: I= A= B= I want to use STL to make (I == 0) a mask to operate on the elements of A and B, i.e. I want to do this:
3
by: H. S. | last post by:
Hi, I am trying to compile these set of C++ files and trying out class inheritence and function pointers. Can anybody shed some light why my compiler is not compiling them and where I am going...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.