From 9624d067e52d11d54f4aef80842cf9b0ca3203fa Mon Sep 17 00:00:00 2001 From: jopierron Date: Tue, 8 Mar 2022 07:37:20 +0000 Subject: [PATCH] Update Personne.cpp --- src/Personne.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Personne.cpp b/src/Personne.cpp index 7fc03b0..43e3ed2 100644 --- a/src/Personne.cpp +++ b/src/Personne.cpp @@ -2,16 +2,13 @@ #include "Personne.hpp" using namespace std; - -int numPers=0; +using namespace reseau; 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"; } // Personne::Personne(): numPers{0}{ -// numPers = numPers+1; // cout << "Personne créée \n"; // } @@ -30,4 +27,3 @@ const string& Personne::getNumTel() const{ void Personne::setNumTel(const string& numTel){ this->numTel = numTel; } -