|
|
@ -14,6 +14,7 @@ int main(){
|
|
|
|
Personne p6{"Jean-Pierre","Pernault","0655345706"};
|
|
|
|
Personne p6{"Jean-Pierre","Pernault","0655345706"};
|
|
|
|
Personne p7{"Johnny","Hallyday","0664345707"};
|
|
|
|
Personne p7{"Johnny","Hallyday","0664345707"};
|
|
|
|
Personne p8{"Jahseh-Dwayne ","Ricardo","0670345708"};
|
|
|
|
Personne p8{"Jahseh-Dwayne ","Ricardo","0670345708"};
|
|
|
|
|
|
|
|
cout << "----------\n";
|
|
|
|
Contact c1{p1};
|
|
|
|
Contact c1{p1};
|
|
|
|
Contact c2{p2};
|
|
|
|
Contact c2{p2};
|
|
|
|
Contact c3{p3};
|
|
|
|
Contact c3{p3};
|
|
|
@ -22,8 +23,15 @@ int main(){
|
|
|
|
Contact c6{p6};
|
|
|
|
Contact c6{p6};
|
|
|
|
Contact c7{p7};
|
|
|
|
Contact c7{p7};
|
|
|
|
Contact c8{p8};
|
|
|
|
Contact c8{p8};
|
|
|
|
|
|
|
|
cout << "----------\n";
|
|
|
|
c1.ajouterContact(p2);
|
|
|
|
c1.ajouterContact(p2);
|
|
|
|
|
|
|
|
c1.ajouterContact(p3);
|
|
|
|
|
|
|
|
cout << "----------\n";
|
|
|
|
|
|
|
|
// c1.rechercher(p3);
|
|
|
|
|
|
|
|
// c1.rechercher(p2);
|
|
|
|
|
|
|
|
// c1.rechercher(p4);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// c1.ajouterContact()
|
|
|
|
// c1.ajouterContact()
|
|
|
|
// map<Personne,listeContact> m {{p1,[p2,p6]},{}}
|
|
|
|
// map<Personne,listeContact> m {{p1,[p2,p6]},{}}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|