diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-12-03 14:57:21 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-12-03 14:57:21 +0100 |
| commit | 7080f89bb2800917bfd9a560046a1ab7505f819e (patch) | |
| tree | a324f9789f5cf9c6cc273989aa46c9c515ccb67e /cpp00/ex01/PhoneBook.hpp | |
| download | piscine_cpp-7080f89bb2800917bfd9a560046a1ab7505f819e.tar.gz piscine_cpp-7080f89bb2800917bfd9a560046a1ab7505f819e.tar.bz2 piscine_cpp-7080f89bb2800917bfd9a560046a1ab7505f819e.zip | |
Initial commit with cpp00 start
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 |
