Update Contact.cpp

main
Joan PIERRON 3 years ago
parent 85a8a15eb2
commit 6b9e66fe1f

@ -2,6 +2,7 @@
#include "Contact.hpp" #include "Contact.hpp"
using namespace std; using namespace std;
using namespace reseau;
Contact::Contact(const Personne& Proprietaire): Proprietaire{Proprietaire} { Contact::Contact(const Personne& Proprietaire): Proprietaire{Proprietaire} {
cout << "Contact créé " << Proprietaire << "\n"; cout << "Contact créé " << Proprietaire << "\n";
@ -20,6 +21,6 @@ Contact::Contact(const Personne& Proprietaire): Proprietaire{Proprietaire} {
// string recevoirMessage(std::string texte, Personne p) // string recevoirMessage(std::string texte, Personne p)
ostream& operator<<(ostream& os, Personne p){ ostream& reseau::operator<<(ostream& os, Personne p){
return os << p.getNom() << " " << p.getPrenom() << " " << p.getNumTel(); return os << p.getNom() << " " << p.getPrenom() << " " << p.getNumTel();
} }

Loading…
Cancel
Save