From 7080f89bb2800917bfd9a560046a1ab7505f819e Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 3 Dec 2019 14:57:21 +0100 Subject: Initial commit with cpp00 start --- cpp00/ex01/PhoneBook.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cpp00/ex01/PhoneBook.hpp (limited to 'cpp00/ex01/PhoneBook.hpp') 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 +# 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 -- cgit