AddressBooks  Version 0.1
This is a basic 10 person 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 <iostream>
7 #include <iomanip>
12 {
13 private:
14  //This is what we are using to store the addresses
15  Address theBook[10];
16  //How many addresses we currently have stored and where the next one will go.
17  int size;
18  void slideUp( int loc );
19  void slideDown( int loc );
20 public:
24  AddressBook();
25 
32  Address addressAt( int location ) const;
37  void addAddress( Address a );
44  Address removeAddressAt(int location );
45 
54  void displayAddresses( std::ostream& out ) const;
55 };
56 
57 #endif