Update Contact.hpp

main
Joan PIERRON 3 years ago
parent 1bc5fdaed7
commit 3ec1f88dbe

@ -2,12 +2,13 @@
#define CONTACT_hpp #define CONTACT_hpp
#include"Personne.hpp" #include"Personne.hpp"
#include<list> #include<list>
#include<iostream>
class Contact { class Contact {
Personne Proprietaire const; Personne Proprietaire;
std::list<Personne*> lesContacts{}; std::list<Personne*> lesContacts{};
public: public:
Contact(const Personne& P); Contact(const Personne& Proprietaire);
void ajouterContact(const Personne& unContact); void ajouterContact(const Personne& unContact);
bool supprimerContact(const Personne& unContact); bool supprimerContact(const Personne& unContact);
// void envoyerMessage(std::string texte, Personne p); // void envoyerMessage(std::string texte, Personne p);
@ -15,4 +16,7 @@ public:
// ~Contact(); // ~Contact();
}; };
std::ostream& operator<<(std::ostream& os, Personne p);
#endif #endif

Loading…
Cancel
Save