Correction creercandidat

master
Johnny RATTON 2 years ago
parent 2c3c200bfa
commit 5b6d39ff1a

@ -1092,6 +1092,7 @@ FileCand insertFile(Candidat *tCand[],int nbClfd)
clearpage(); clearpage();
for(i=0;i<nbClfd;i++) for(i=0;i<nbClfd;i++)
{ {
printf("nbclfd : %d\ti : %d", nbClfd, i);
afficherCandChoix(tCand, nbClfd); afficherCandChoix(tCand, nbClfd);
printf("%.2f\n", tCand[i]->moyenne); printf("%.2f\n", tCand[i]->moyenne);
clearpage(); clearpage();
@ -1534,6 +1535,7 @@ Candidat ** creerCandidat(Candidat *tCand[], int *tMax,int *pos)
c->notes[1] = notes[1]; c->notes[1] = notes[1];
c->notes[2] = notes[2]; c->notes[2] = notes[2];
c->notes[3] = notes[3]; c->notes[3] = notes[3];
c->nombreChoix = 0;
tCand = reallocationCand(tCand, *tMax); /* Réallocation du tableau de candidats pour ajouter une place */ 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 */ for(i = *tMax; i > *pos; i--) /* Décalage à droite des éléments du tableau à partir de la position d'insertion */
{ {

Loading…
Cancel
Save