diff --git a/src/partie2/saeP2.c b/src/partie2/saeP2.c index c31f743..e233145 100644 --- a/src/partie2/saeP2.c +++ b/src/partie2/saeP2.c @@ -193,7 +193,8 @@ void Candidater(VilleIUT* tiut[],int tlogi, candidat* tcandidat[], int nbcandida strcpy(voeu_ajout->dep,DepRech); voeu_ajout->ddep=0; voeu_ajout->vcand=0; - tcandidat[i]->TabVoeu[tcandidat[i]->nbchoix-1]=voeu_ajout; + printf("%d\n", tcandidat[i]->nbchoix); + tcandidat[i]->TabVoeu[tcandidat[i]->nbchoix]=voeu_ajout; tcandidat[i]->nbchoix++; }