From 3354edbf32987018d055177b37cad6f2021a4006 Mon Sep 17 00:00:00 2001 From: Roxane Rossetto Date: Fri, 13 Jan 2023 11:48:20 +0100 Subject: [PATCH] =?UTF-8?q?chargement=20tableau=20de=20pointeur=20part=204?= =?UTF-8?q?=20termin=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- part4.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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); }