diff --git a/part4.c b/part4.c index c68941a..4951731 100644 --- a/part4.c +++ b/part4.c @@ -274,7 +274,8 @@ Filecand ChargementfileC(Filecand fC, int *nbC)//chargement du fichier dans cett } int chargement (Candidat tCandAcc[], int tmax, FILEfe){// chargement des files cand et chx - + int i; + Choix chx; fscanf( fe, "%d", nbCand ); @@ -292,7 +293,11 @@ int chargement (Candidat tCandAcc[], int tmax, FILEfe){// chargement des files c } *tCandAcc[i] = c; fscanf( fe, "%d", &nbC); - tCandAcc[i]->lchx = Chargementlistecandidat ( fe, tCandAcc[i]->lchx, nbC); + for ( i=0 ; ilchx = enf( tCandAcc[i]->lchx, chx ); + + } i++; c = lireCa (fe); }