|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#include "SAE.h"
|
|
|
|
|
|
|
|
|
|
void menu(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandidats, bool *phaseCandidatures, bool *phaseTraitement)
|
|
|
|
|
void menu(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandidats, bool *phaseCandidatures, bool *phaseTraitement, Etudiant *tetudAdmis[], int *nbEtudAdmis, Etudiant *tetudAttente[], int *nbEtudAttente)
|
|
|
|
|
{
|
|
|
|
|
int choix;
|
|
|
|
|
bool c = false;
|
|
|
|
@ -41,7 +41,7 @@ void menu(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandidats, boo
|
|
|
|
|
menuCandidat(tiut, nbIUT, tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
menuResponsable(tetud, *nbCandidats, tiut, nbIUT);
|
|
|
|
|
menuResponsable(tetud, *nbCandidats, tiut, nbIUT, tetudAdmis, nbEtudAdmis, tetudAttente, nbEtudAttente);
|
|
|
|
|
break;
|
|
|
|
|
case 9:
|
|
|
|
|
c = true;
|
|
|
|
@ -190,10 +190,16 @@ void menuCandidat(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandid
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *nbIUT)
|
|
|
|
|
void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *nbIUT, Etudiant *tetudAdmis[], int *nbEtudAdmis, Etudiant *tetudAttente[], int *nbEtudAttente)
|
|
|
|
|
{
|
|
|
|
|
int choix;
|
|
|
|
|
bool c = false;
|
|
|
|
|
Etudiant *tetudResp[100];
|
|
|
|
|
int nbCandidatsDept;
|
|
|
|
|
char respVille[30], respDept[30];
|
|
|
|
|
deptResp(tiut, *nbIUT, respVille, respDept);
|
|
|
|
|
nbCandidatsDept = chargementRespDept(tetud, *nbCandidats, respVille, respDept, tetudResp);
|
|
|
|
|
triNote(tetudResp, nbCandidatsDept);
|
|
|
|
|
//! Ajouter la moyenne et nommer deux liste pour admis et en attente
|
|
|
|
|
|
|
|
|
|
while (c == false)
|
|
|
|
@ -226,7 +232,7 @@ void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *
|
|
|
|
|
switch (choix)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
// lancerAdmission(tetudResp, *nbCandidats);
|
|
|
|
|
lancerAdmissions(tetudResp, *nbCandidats, tetudAdmis, nbEtudAdmis, tetudAttente, nbEtudAttente, respVille, respDept);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
menuAffichage(tetud, nbCandidats, tiut, nbIUT);
|
|
|
|
|