Améliorations

master
Kyllian Chabanon 2 years ago
parent f25d875790
commit 6c22b44e8b

@ -202,7 +202,7 @@ void menuResponsable(Etudiant *tetud[], int *nbCandidats, VilleIUT *tiut[], int
int nbCandidatsDept; int nbCandidatsDept;
char respVille[30], respDept[30]; char respVille[30], respDept[30];
deptResp(tiut, *nbIUT, respVille, respDept); 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("\n\nMenu des Responsable de Departement : Que voulez-vous faire ?\n");
printf("\t1 - Lancer les admissions\n"); printf("\t1 - Lancer les admissions\n");
printf("\t2 - Afficher les candidats dans mon département\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) switch (choix)
{ {
case 1: case 1:
// lancerAdmission(tetudResp, *nbCandidats); // lancerAdmission(tetudResp, *nbCandidats);
break; break;
case 2: case 2:
afficherCandidats(tetudResp, nbCandidatsDept); afficherCandidats(tetudResp, nbCandidatsDept);

@ -17,7 +17,6 @@ void deptResp(VilleIUT *tiut[], int nbVilles, char respVille[], char respIUT[])
return; return;
} }
} }
printf("%s %s", respVille, respIUT);
//! Rechercher si existe //! Rechercher si existe
} }
@ -28,7 +27,7 @@ int chargementRespDept(Etudiant *tetud[], int nbCand, char respVille[], char res
int nb = 0; int nb = 0;
for (int i = 0; i < nbCand; i++) 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) if (strcmp(getDeptChoix(tetud[i]->lChoix, n), respIUT) == 0 && strcmp(getVilleChoix(tetud[i]->lChoix, n), respVille) == 0)
{ {

Loading…
Cancel
Save