From 1a052aca98b090f88ed02ddaa4f10ecce01d54aa Mon Sep 17 00:00:00 2001 From: jopierron Date: Tue, 29 Mar 2022 19:19:44 +0000 Subject: [PATCH] Update Contact.hpp --- src/Contact.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Contact.hpp b/src/Contact.hpp index 5eaaf9e..e055474 100644 --- a/src/Contact.hpp +++ b/src/Contact.hpp @@ -3,18 +3,21 @@ #include"Personne.hpp" #include #include +#include namespace reseau{ class Contact { reseau::Personne Proprietaire; std::list lesContacts{}; + void Recursive(std::list Contacts, std::set* set); public: - Contact(const reseau::Personne& Proprietaire); + Contact(const reseau::Personne& Proprietaire); + const Personne& getProprio() const; bool ajouterContact(const reseau::Personne& unContact); bool supprimerContact(const reseau::Personne& unContact); bool rechercher(const Personne& unContact); void afficherContactDirect(); - void afficherContactIndirect(); + void afficherContactIndirect(std::list Contacts); // ~Contact(); }; std::ostream& operator<<(std::ostream& os, reseau::Personne p);