From ec2f18daf5c66b6e7b0ebee7e17267c7d54d55c0 Mon Sep 17 00:00:00 2001 From: jopierron Date: Thu, 31 Mar 2022 13:25:58 +0000 Subject: [PATCH] Upload New File --- src/Personne2.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/Personne2.h diff --git a/src/Personne2.h b/src/Personne2.h new file mode 100644 index 0000000..77a7512 --- /dev/null +++ b/src/Personne2.h @@ -0,0 +1,22 @@ +#ifndef PERSONNE2_HPP +#define PERSONNE2_HPP +#include +#include + +namespace reseau2 { + class Personne { + std::string prenom; + // std::map> map; + public: + Personne(const std::string& prenom); + bool ajoutListe(const Personne& unePersonne); + void affichListe(); + const std::string& getPrenom() const; + ~Personne(); + }; + std::list lesPersonnes{}; + std::ostream& operator<<(std::ostream& os, reseau2::Personne p); + bool operator==(reseau2::Personne p1, reseau2::Personne p2); +} + +#endif \ No newline at end of file