parent
6fe44c2876
commit
46ec6ba329
@ -0,0 +1,20 @@
|
|||||||
|
#ifndef CONTACTMANAGER_H
|
||||||
|
#define CONTACTMANAGER_H
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <fstream>
|
||||||
|
#include "Contact.h"
|
||||||
|
|
||||||
|
class ContactManager {
|
||||||
|
private:
|
||||||
|
std::vector<Contact> 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
|
Loading…
Reference in new issue