|
|
|
@ -17,3 +17,20 @@ char* lireDept(FILE* fe){
|
|
|
|
|
|
|
|
|
|
Liste initListe(void){return NULL;}
|
|
|
|
|
|
|
|
|
|
Liste insertEnTete(Liste l, char* c){
|
|
|
|
|
Maillon *x;
|
|
|
|
|
x = (Maillon*)malloc(sizeof(Maillon));
|
|
|
|
|
if(x==NULL){printf("pb malloc"); exit;}
|
|
|
|
|
strcpy(x); //ligne a compléter une fois la structure Liste définie
|
|
|
|
|
//idem
|
|
|
|
|
//idem
|
|
|
|
|
return x;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Liste insertCroissante(Liste l, char* c){
|
|
|
|
|
if (l==NULL){return insertEnTete(l, c);}
|
|
|
|
|
if (strcmp()<0)//a compléter une fois la structure Liste définie
|
|
|
|
|
return insertEnTete(l,c);//ligne fausse, a compléter
|
|
|
|
|
//idem
|
|
|
|
|
return l;
|
|
|
|
|
}
|