You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
494 B
21 lines
494 B
#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
|