You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
749 B
30 lines
749 B
#include <iostream>
|
|
#include "Personne.hpp"
|
|
#include"Contact.hpp"
|
|
|
|
using namespace std;
|
|
using namespace reseau;
|
|
|
|
int main(){
|
|
Personne p1{"Bernard","Tapie","0612345701"};
|
|
Personne p2{"Lionel","Pessi","0608345702"};
|
|
Personne p3{"Pristiano","Penaldo","0620345703"};
|
|
Personne p4{"Léon","Blum","0635345704"};
|
|
Personne p5{"Karim","Benzema","0648345705"};
|
|
Personne p6{"Jean-Pierre","Pernault","0655345706"};
|
|
Personne p7{"Johnny","Hallyday","0664345707"};
|
|
Personne p8{"Jahseh-Dwayne ","Ricardo","0670345708"};
|
|
Contact c1{p1};
|
|
Contact c2{p2};
|
|
Contact c3{p3};
|
|
Contact c4{p4};
|
|
Contact c5{p5};
|
|
Contact c6{p6};
|
|
Contact c7{p7};
|
|
Contact c8{p8};
|
|
c1.ajouterContact(p2);
|
|
// c1.ajouterContact()
|
|
// map<Personne,listeContact> m {{p1,[p2,p6]},{}}
|
|
}
|
|
|