You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sae2.02/src/Contact.cpp

26 lines
598 B

#include <iostream>
#include "Contact.hpp"
using namespace std;
Contact::Contact(const Personne& Proprietaire): Proprietaire{Proprietaire} {
cout << "Contact créé " << Proprietaire << "\n";
}
// void Contact::ajouterContact(const Personne& unContact){
// //push_front
// }
// bool Contact::supprimerContact(const Personne& unContact){
// //remove
// }
// 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();
}