parent
902bf7c255
commit
ec2f18daf5
@ -0,0 +1,22 @@
|
|||||||
|
#ifndef PERSONNE2_HPP
|
||||||
|
#define PERSONNE2_HPP
|
||||||
|
#include <list>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace reseau2 {
|
||||||
|
class Personne {
|
||||||
|
std::string prenom;
|
||||||
|
// std::map<reseau2::Personne,std::list<reseau2::lesPersonnes>> map;
|
||||||
|
public:
|
||||||
|
Personne(const std::string& prenom);
|
||||||
|
bool ajoutListe(const Personne& unePersonne);
|
||||||
|
void affichListe();
|
||||||
|
const std::string& getPrenom() const;
|
||||||
|
~Personne();
|
||||||
|
};
|
||||||
|
std::list<reseau2::Personne> lesPersonnes{};
|
||||||
|
std::ostream& operator<<(std::ostream& os, reseau2::Personne p);
|
||||||
|
bool operator==(reseau2::Personne p1, reseau2::Personne p2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in new issue