|
|
@ -4,27 +4,15 @@
|
|
|
|
using namespace std;
|
|
|
|
using namespace std;
|
|
|
|
using namespace reseau;
|
|
|
|
using namespace reseau;
|
|
|
|
|
|
|
|
|
|
|
|
Personne::Personne(const std::string& nom, const std::string& prenom, const string& numTel): nom{nom}, prenom{prenom}, numTel{numTel}{
|
|
|
|
Personne::Personne(const std::string& prenom):prenom{prenom}{
|
|
|
|
cout << "Personne créée " << nom << " " << prenom << " " << numTel <<"\n";
|
|
|
|
cout << "Personne créée " << prenom <<"\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Personne::Personne(): numPers{0}{
|
|
|
|
// Personne::Personne(): numPers{0}{
|
|
|
|
// cout << "Personne créée \n";
|
|
|
|
// cout << "Personne créée \n";
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
const string& Personne::getNom() const{
|
|
|
|
|
|
|
|
return nom;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const string& Personne::getPrenom() const{
|
|
|
|
const string& Personne::getPrenom() const{
|
|
|
|
return prenom;
|
|
|
|
return this->prenom;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const string& Personne::getNumTel() const{
|
|
|
|
|
|
|
|
return numTel;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Personne::setNumTel(const string& numTel){
|
|
|
|
|
|
|
|
this->numTel = numTel;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|