From 1bc5fdaed70cd99f7c79f629001f2870c98f1719 Mon Sep 17 00:00:00 2001 From: jopierron Date: Tue, 8 Mar 2022 07:31:53 +0000 Subject: [PATCH] Update Contact.cpp --- src/Contact.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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(); +}