From 1f7a04fd985857ca2a6742e57f7d17d18d2cd163 Mon Sep 17 00:00:00 2001 From: "matheo.thierry" Date: Sat, 17 Dec 2022 09:34:15 +0100 Subject: [PATCH] MODIF correction v4 P2 --- sae1-02.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sae1-02.c b/sae1-02.c index 7a0dab8..7f9e90a 100644 --- a/sae1-02.c +++ b/sae1-02.c @@ -82,7 +82,7 @@ Listchoixdept inserercarte(Listchoixdept c, FILE *fe){ Maillonchoix* cc; cc = (Maillonchoix*)malloc(sizeof(Maillonchoix)); if(cc==NULL){printf("\n");exit(1);} - fscanf(fe, "%s %s %d %d", cc.Ville, cc.dep, &cc.decision, &cc.validation); + fscanf(fe, "%s %s %d %d", cc->Ville, cc->dep, &cc->decision, &cc->validation); cc->suivant=c; return cc; } @@ -94,7 +94,7 @@ Listchoixdept lireChoix(FILE *fe, int nbchoix){ Listchoixdept c, temp; c = listchoixdeptvide(); for(i=0; inbchoix; i++){ printf("carte %d={", i+1); - affichageensemble(tetu[j]->lchoixdept); + affichage(tetu[j]->lchoixdept); } } }