aboutsummaryrefslogtreecommitdiff
path: root/cpp00/ex01/PhoneBook.hpp
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-12-03 14:57:21 +0100
committerCharles <sircharlesaze@gmail.com>2019-12-03 14:57:21 +0100
commit7080f89bb2800917bfd9a560046a1ab7505f819e (patch)
treea324f9789f5cf9c6cc273989aa46c9c515ccb67e /cpp00/ex01/PhoneBook.hpp
downloadpiscine_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.hpp20
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