From 5b6d39ff1af4a100b7df98db2c7ef25f8c95158b Mon Sep 17 00:00:00 2001 From: johnny Date: Fri, 13 Jan 2023 22:11:34 +0100 Subject: [PATCH] Correction creercandidat --- Commun.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Commun.c b/Commun.c index 156d500..c9d68fa 100644 --- a/Commun.c +++ b/Commun.c @@ -1092,6 +1092,7 @@ FileCand insertFile(Candidat *tCand[],int nbClfd) clearpage(); for(i=0;imoyenne); clearpage(); @@ -1534,6 +1535,7 @@ Candidat ** creerCandidat(Candidat *tCand[], int *tMax,int *pos) c->notes[1] = notes[1]; c->notes[2] = notes[2]; c->notes[3] = notes[3]; + c->nombreChoix = 0; tCand = reallocationCand(tCand, *tMax); /* Réallocation du tableau de candidats pour ajouter une place */ for(i = *tMax; i > *pos; i--) /* Décalage à droite des éléments du tableau à partir de la position d'insertion */ {