From 46ec6ba3296eb2adff9a6e3652fbc72339d57173 Mon Sep 17 00:00:00 2001 From: paxmbrt4l Date: Sat, 22 Jun 2024 15:40:13 +0800 Subject: [PATCH] Add ContactManager.h --- ContactManager.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ContactManager.h diff --git a/ContactManager.h b/ContactManager.h new file mode 100644 index 0000000..c65d6bf --- /dev/null +++ b/ContactManager.h @@ -0,0 +1,20 @@ +#ifndef CONTACTMANAGER_H +#define CONTACTMANAGER_H + +#include +#include +#include "Contact.h" + +class ContactManager { +private: + std::vector contacts; + +public: + void addContact(const std::string& name, const std::string& phone, const std::string& email); + void removeContact(const std::string& name); + void displayContacts(); + void saveToFile(const std::string& filename); + void loadFromFile(const std::string& filename); +}; + +#endif // CONTACTMANAGER_H