AddressBooks
Version 0.2
This is flexible sized address book
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
src
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;
14
class
AddressBook
15
{
16
private
:
20
int
count
;
24
int
size
;
28
Address
*
theBook
;
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
Generated on Fri Apr 25 2014 07:17:49 for AddressBooks by
1.8.2