diff options
Diffstat (limited to 'cpp00/ex01/PhoneBook.hpp')
| -rw-r--r-- | cpp00/ex01/PhoneBook.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cpp00/ex01/PhoneBook.hpp b/cpp00/ex01/PhoneBook.hpp new file mode 100644 index 0000000..c4f8a23 --- /dev/null +++ b/cpp00/ex01/PhoneBook.hpp @@ -0,0 +1,20 @@ +#ifndef PHONE_BOOK_HPP +# define PHONE_BOOK_HPP + +# define CONTACTS_SIZE 8 + +# include <string> +# include "Contact.hpp" + +class PhoneBook +{ +public: + PhoneBook(); + bool add(Contact contact); + Contact* search(std::string needle); +private: + Contact contacts[CONTACTS_SIZE]; + int contacts_len; +}; + +#endif // PHONE_BOOK_HPP |
