From d54db6df61ed6a73a2b368195102dfc3480b4f3e Mon Sep 17 00:00:00 2001 From: Yann CHAMPEAU Date: Fri, 13 Jan 2023 22:32:00 +0100 Subject: [PATCH] Old --- src/partie2/saeP2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++; }