C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-14-2007, 05:19 AM   #1
Registered User
 
IndioDoido's Avatar
 
Join Date: Apr 2007
Posts: 194
How to use Vector's in C++ !?!

Hi,

I'm learning C++ this year, and i have to work with vector's in my first project.

Can anyone tel me were i can find sample codes using vectors and code references?

In this project i have to use several vectors and "connect" there data.
Exmp.:
2 vectors:
vector cars
vector owners

The same owner can have an unlimited number of cars, so those 2 vectors must be "connected".

Can anyone help me where i can find good C++ vector examples?
__________________
"Artificial Intelligence usually beats natural stupidity."
IndioDoido is offline   Reply With Quote
Old 10-14-2007, 05:31 AM   #2
C++ Witch
 
laserlight's Avatar
 
Join Date: Oct 2003
Location: Singapore
Posts: 10,365
Take a look at:
cppreference.com's entry on vector
SGI's STL reference on vector

You could also read The C++ Standard Library: A Tutorial and Refence by Nicolai Josuttis.
__________________
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar

Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
laserlight is online now   Reply With Quote
Old 10-14-2007, 11:08 AM   #3
Registered User
 
IndioDoido's Avatar
 
Join Date: Apr 2007
Posts: 194
hi laserlight, thanks alot!

Im reading this book: "Thinking in C++ - Bruce Eckel", it's a bit boring but free :-)

Is the book The C++ Standard Library in the same category, or is it more useful?
In other words...should i buy it?
__________________
"Artificial Intelligence usually beats natural stupidity."
IndioDoido is offline   Reply With Quote
Old 10-14-2007, 11:13 AM   #4
C++ Witch
 
laserlight's Avatar
 
Join Date: Oct 2003
Location: Singapore
Posts: 10,365
Quote:
Is the book The C++ Standard Library in the same category, or is it more useful?
Since it is a reference to the C++ standard library, it will be more useful in the long run. If you only want to use it as a tutorial and then use online references, I suggest borrowing it from your local library.
__________________
C + C++ Compiler: MinGW port of GCC
Build + Version Control System: SCons + Bazaar

Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
laserlight is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vectors naseerhaider C++ Programming 11 05-09-2008 08:21 AM
How can i made vectors measuring program in DevC++ flame82 C Programming 1 05-07-2008 02:05 PM
How properly get data out of vectors of templates? 6tr6tr C++ Programming 4 04-15-2008 10:35 AM
Adding vectors ?? Hussain Hani C++ Programming 1 11-18-2006 03:03 AM
Points, vectors, matrices subnet_rx Game Programming 17 01-11-2002 02:29 PM


All times are GMT -6. The time now is 06:53 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22