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