Update Personne.cpp

main
Joan PIERRON 3 years ago
parent ef121c1075
commit 9624d067e5

@ -2,16 +2,13 @@
#include "Personne.hpp" #include "Personne.hpp"
using namespace std; using namespace std;
using namespace reseau;
int numPers=0;
Personne::Personne(const std::string& nom, const std::string& prenom, const string& numTel): nom{nom}, prenom{prenom}, numTel{numTel}{ Personne::Personne(const std::string& nom, const std::string& prenom, const string& numTel): nom{nom}, prenom{prenom}, numTel{numTel}{
numPers = numPers+1;
cout << "Personne créée " << nom << " " << prenom << " " << numTel <<"\n"; cout << "Personne créée " << nom << " " << prenom << " " << numTel <<"\n";
} }
// Personne::Personne(): numPers{0}{ // Personne::Personne(): numPers{0}{
// numPers = numPers+1;
// cout << "Personne créée \n"; // cout << "Personne créée \n";
// } // }
@ -30,4 +27,3 @@ const string& Personne::getNumTel() const{
void Personne::setNumTel(const string& numTel){ void Personne::setNumTel(const string& numTel){
this->numTel = numTel; this->numTel = numTel;
} }

Loading…
Cancel
Save