|
|
@ -28,7 +28,6 @@ int main(){
|
|
|
|
Personne p14{"Thibault"};
|
|
|
|
Personne p14{"Thibault"};
|
|
|
|
Personne p15{"Gwen"};
|
|
|
|
Personne p15{"Gwen"};
|
|
|
|
list<Contact*> Contacts;
|
|
|
|
list<Contact*> Contacts;
|
|
|
|
// cout << "----------\n";
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
On crée les contacts en mettant leur propiétaire, on ajoute ensuite chaque contact dans une liste juste après leur construction
|
|
|
|
On crée les contacts en mettant leur propiétaire, on ajoute ensuite chaque contact dans une liste juste après leur construction
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -62,7 +61,6 @@ int main(){
|
|
|
|
Contacts.push_back(&c14);
|
|
|
|
Contacts.push_back(&c14);
|
|
|
|
Contact c15{p15};
|
|
|
|
Contact c15{p15};
|
|
|
|
Contacts.push_back(&c15);
|
|
|
|
Contacts.push_back(&c15);
|
|
|
|
// cout << "----------\n";
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
On place les contacts directs dans une liste de personne qui correspond au répertoire de chaque personne
|
|
|
|
On place les contacts directs dans une liste de personne qui correspond au répertoire de chaque personne
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -88,11 +86,6 @@ int main(){
|
|
|
|
c14.ajouterContact(p12);
|
|
|
|
c14.ajouterContact(p12);
|
|
|
|
c14.ajouterContact(p13);
|
|
|
|
c14.ajouterContact(p13);
|
|
|
|
c15.ajouterContact(p9);
|
|
|
|
c15.ajouterContact(p9);
|
|
|
|
// cout << "----------\n";
|
|
|
|
|
|
|
|
// c1.rechercher(p3);
|
|
|
|
|
|
|
|
// c1.rechercher(p2);
|
|
|
|
|
|
|
|
// c1.rechercher(p5);
|
|
|
|
|
|
|
|
// cout << "----------\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|