![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#12 |
|
Newbie
Join Date: Apr 2008
Posts: 10
Rep Power: 0
![]() |
Re: Vectors
You probably know this already, but vector and string are classes, so you are using classes, technically. You could make an address book program. Make a class that stores names, phone numbers, addresses, whatever, and has a few methods (maybe checking if a phone number is valid or outputting the information to a string). Then you can have a vector of these classes. Although, it may be better to have a vector of pointers to such classes.
|
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| reading from file, and vectors question | jasonfrost | C++ | 3 | Oct 3rd, 2007 9:02 AM |
| Arrays or Vectors? | can342man | C++ | 2 | Apr 20th, 2006 3:57 PM |
| Vectors and Classes | Writlaus | C++ | 11 | Apr 13th, 2006 5:25 AM |
| Passing vectors as arguments | Soulstorm | C++ | 6 | Mar 18th, 2006 4:49 PM |
| Drawing using vectors | HeX | Java | 12 | May 7th, 2005 10:25 AM |