|
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.
|