diff --git a/src/Contact.cpp b/src/Contact.cpp index 1027d55..d302b17 100644 --- a/src/Contact.cpp +++ b/src/Contact.cpp @@ -3,7 +3,9 @@ using namespace std; -Contact::Contact(const Personne& P): P{P} {} +Contact::Contact(const Personne& Proprietaire): Proprietaire{Proprietaire} { + cout << "Contact créé " << Proprietaire << "\n"; +} // void Contact::ajouterContact(const Personne& unContact){ // //push_front @@ -17,3 +19,7 @@ Contact::Contact(const Personne& P): P{P} {} // string envoyerMessage(std::string texte, Personne p) // string recevoirMessage(std::string texte, Personne p) + +ostream& operator<<(ostream& os, Personne p){ + return os << p.getNom() << " " << p.getPrenom() << " " << p.getNumTel(); +}