Thread: Vectors
View Single Post
Old Apr 19th, 2008, 10:12 PM   #12
misho
Newbie
 
Join Date: Apr 2008
Posts: 10
Rep Power: 0 misho is on a distinguished road
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.
misho is offline   Reply With Quote