From 6c22b44e8b5e6c77a4108ed8e36e18c80dc26d4c Mon Sep 17 00:00:00 2001 From: Kyllian Chabanon Date: Thu, 12 Jan 2023 20:54:45 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9liorations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- menus.c | 4 ++-- partie_3.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/menus.c b/menus.c index 87ef380..798f2d3 100755 --- a/menus.c +++ b/menus.c @@ -202,7 +202,7 @@ void menuResponsable(Etudiant *tetud[], int *nbCandidats, VilleIUT *tiut[], int int nbCandidatsDept; char respVille[30], respDept[30]; deptResp(tiut, *nbIUT, respVille, respDept); - chargementRespDept(tetud, *nbCandidats, respVille, respDept, tetudResp); + nbCandidatsDept = chargementRespDept(tetud, *nbCandidats, respVille, respDept, tetudResp); printf("\n\nMenu des Responsable de Departement : Que voulez-vous faire ?\n"); printf("\t1 - Lancer les admissions\n"); printf("\t2 - Afficher les candidats dans mon département\n"); @@ -224,7 +224,7 @@ void menuResponsable(Etudiant *tetud[], int *nbCandidats, VilleIUT *tiut[], int switch (choix) { case 1: - // lancerAdmission(tetudResp, *nbCandidats); + // lancerAdmission(tetudResp, *nbCandidats); break; case 2: afficherCandidats(tetudResp, nbCandidatsDept); diff --git a/partie_3.c b/partie_3.c index 3f860e3..dfe0360 100644 --- a/partie_3.c +++ b/partie_3.c @@ -17,7 +17,6 @@ void deptResp(VilleIUT *tiut[], int nbVilles, char respVille[], char respIUT[]) return; } } - printf("%s %s", respVille, respIUT); //! Rechercher si existe } @@ -28,7 +27,7 @@ int chargementRespDept(Etudiant *tetud[], int nbCand, char respVille[], char res int nb = 0; for (int i = 0; i < nbCand; i++) { - for (int n = 1; n < tetud[i]->nbChoix; n++) + for (int n = 0; n < tetud[i]->nbChoix; n++) { if (strcmp(getDeptChoix(tetud[i]->lChoix, n), respIUT) == 0 && strcmp(getVilleChoix(tetud[i]->lChoix, n), respVille) == 0) {