AddressBooks  Version 0.2
This is flexible sized address book
 All Classes Functions Variables
AddressBook.h
1 #ifndef ADDRESS_BOOK_H
2 #define ADDRESS_BOOK_H
3 
4 #include "Address.h"
5 
6 #include <stdexcept>
7 #include <iostream>
8 #include <iomanip>
9 
10 using std::out_of_range;
15 {
16 private:
20  int count;
24  int size;
34  void slideUp( int loc );
39  void slideDown( int loc );
43  void grow();
44 public:
50  AddressBook();
54  ~AddressBook();
55 
63  Address addressAt( int location ) const throw(out_of_range);
69  void addAddress( Address a );
78  Address removeAddressAt(int location ) throw(out_of_range);
79 
88  void displayAddresses( std::ostream& out ) const;
89 };
90 
91 #endif