@ -249,7 +249,7 @@ void menuCandidat(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandid
* @ param tetudAttente Tableau des é tudiants en file d ' attente
* @ param tetudAttente Tableau des é tudiants en file d ' attente
* @ param nbEtudAttente Nombre d ' é tudiants en file d ' attente
* @ param nbEtudAttente Nombre d ' é tudiants en file d ' attente
*/
*/
void menuResponsable ( Etudiant * tetud [ ] , int nbCandidats , VilleIUT * tiut [ ] , int * nbIUT , Etudiant * tetudAdmis [ ] , int * nbEtudAdmis , Etudiant * tetudAttente [ ] , int * nbEtudAttente )
void menuResponsable ( Etudiant * tetud [ ] , int nbCandidats , VilleIUT * tiut [ ] , int * nbIUT , Etudiant * tetudAdmis [ ] , int nbEtudAdmis , Etudiant * tetudAttente [ ] , int nbEtudAttente )
{
{
int choix ;
int choix ;
bool c = false ;
bool c = false ;
@ -274,16 +274,6 @@ void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *
printf ( " \t 2 - Affichages \n " ) ;
printf ( " \t 2 - Affichages \n " ) ;
printf ( " \t 3 - Modifier le nombre de places dans un département \n " ) ;
printf ( " \t 3 - Modifier le nombre de places dans un département \n " ) ;
printf ( " \t 4 - Modifier la note minimal d'admission du departement \n " ) ;
printf ( " \t 4 - Modifier la note minimal d'admission du departement \n " ) ;
// printf("\t2 - Afficher les candidats dans mon département\n");
// printf("\t3 - Afficher les candidats admis du departement\n");
// printf("\t4 - Afficher les candidats refusés du departement\n");
// printf("\t5 - Afficher les candidats en attente du departement\n");
// printf("\t6 - Afficher les informations de tous les candidats du departement\n");
// printf("\t7 - Afficher les informations d'un seul candidat du departement\n");
// printf("\t8 - Afficher le statue d'un candidats du departement\n");
// printf("\t9 - Afficher le nombre de candidats admis du departement\n");
// printf("\t10- Afficher le nombre de candidats refusés du departement\n");
// printf("\t11- Afficher le nombre de candidats en attente du departement\n");
printf ( " \t 9 - Quitter \n " ) ;
printf ( " \t 9 - Quitter \n " ) ;
printf ( " \n Entrez votre choix : \n > " ) ;
printf ( " \n Entrez votre choix : \n > " ) ;
scanf ( " %d%*c " , & choix ) ;
scanf ( " %d%*c " , & choix ) ;
@ -295,42 +285,12 @@ void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *
case 2 :
case 2 :
menuAffichage ( tetudResp , nbCandidatsDept , tetudRespAdmis , nbCandidatsDeptAdmis , tetudRespAttente , nbCandidatsDeptAttente ) ;
menuAffichage ( tetudResp , nbCandidatsDept , tetudRespAdmis , nbCandidatsDeptAdmis , tetudRespAttente , nbCandidatsDeptAttente ) ;
break ;
break ;
/*case 1:
// modifNbPlaces(nbPlaces)
break ;
case 2 :
afficherCandidatsAdmis ( tetud , nbCandidats ) ;
break ;
case 3 :
case 3 :
afficherCandidatsRefuses( tetud , nbCandidats ) ;
modificationNbPDept ( tiut , * nbIUT ) ;
break ;
break ;
case 4 :
case 4 :
afficherCandidatsAttente ( tetud , nbCandidats ) ;
// modificationNoteMinDept(tiut, *nbIUT);
break ;
case 5 :
afficherCandidats ( tetud , nbCandidats ) ;
break ;
case 6 :
afficherCandidat ( tetud , nbCandidats ) ;
break ;
case 7 :
statueCandidat ( tetud , nbCandidats ) ;
break ;
case 8 :
nbCandidatsAdmis ( tetud , nbCandidats ) ;
break ;
break ;
case 9 :
nbCandidatsRefuses ( tetud , nbCandidats ) ;
break ;
case 10 :
nbCandidatsAttente ( tetud , nbCandidats ) ;
break ;
case 11 :
// modifNoteMin(noteMin);
break ;
case 12 :
// modifNoteExel(noteExel);
break ; */
case 9 :
case 9 :
c = true ;
c = true ;
return ;
return ;
@ -353,60 +313,45 @@ void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *
* @ param tetudAttente Tableau des é tudiants en file d ' attente
* @ param tetudAttente Tableau des é tudiants en file d ' attente
* @ param nbEtudAttente Nombre d ' é tudiants en file d ' attente
* @ param nbEtudAttente Nombre d ' é tudiants en file d ' attente
*/
*/
void menuAffichage ( Etudiant * tetud [ ] , int nbCandidats , VilleIUT * tiut [ ] , int * nbIUT , Etudiant * tetudAdmis [ ] , int * nbEtud Admis, Etudiant * tetud Attente[ ] , int * nbEtud Attente)
void menuAffichage ( Etudiant * tetud Resp [ ] , int nbCandidats Dept, Etudiant * tetudRespAdmis [ ] , int nbCandidatsDept Admis, Etudiant * tetud Resp Attente[ ] , int nbCandidatsDept Attente)
{
{
int choix ;
int choix ;
bool c = false ;
bool c = false ;
while ( c = = false )
while ( c = = false )
{
{
// system("clear");
printf ( " \n \n Menu des Affichages Responsable de Departement : Que voulez-vous faire ? \n " ) ;
printf ( " \n \n Menu des Affichages Responsable de Departement : Que voulez-vous faire ? \n " ) ;
printf ( " \t 1 - Afficher les candidats dans mon département \n " ) ;
printf ( " \t 1 - Afficher les candidats dans mon département (trier par note moyenne) \n " ) ;
printf ( " \t 2 - Afficher les candidats admis du departement \n " ) ;
printf ( " \t 2 - Afficher les candidats admis du departement \n " ) ;
printf ( " \t 3 - Afficher les candidats refusés du departement \n " ) ;
printf ( " \t 3 - Afficher les candidats refusés du departement \n " ) ;
printf ( " \t 4 - Afficher les candidats en attente du departement \n " ) ;
printf ( " \t 4 - Afficher les candidats en attente du departement \n " ) ;
printf ( " \t 5 - Afficher les informations de tous les candidats du departement \n " ) ;
printf ( " \t 5 - Afficher un seul candidat du departement \n " ) ;
printf ( " \t 6 - Afficher les informations d'un seul candidat du departement \n " ) ;
printf ( " \t 6 - Afficher le statue d'un candidats du departement \n " ) ;
printf ( " \t 7 - Afficher le statue d'un candidats du departement \n " ) ;
// ! printf("\t8 - Afficher le nombre de candidats admis du departement\n");
// ! printf("\t9 - Afficher le nombre de candidats refusés du departement\n"); Les mettres a la fin de chaque affichage des autres
// ! printf("\t10- Afficher le nombre de candidats en attente du departement\n");
printf ( " \t 9 - Quitter \n " ) ;
printf ( " \t 9 - Quitter \n " ) ;
printf ( " \n Entrez votre choix : \n > " ) ;
printf ( " \n Entrez votre choix : \n > " ) ;
scanf ( " %d%*c " , & choix ) ;
scanf ( " %d%*c " , & choix ) ;
switch ( choix )
switch ( choix )
{
{
case 1 :
case 1 :
// lancerAdmission(tetudResp, *nbCandidats);
afficherCandidats ( tetudResp , nbCandidatsDept ) ;
printf ( " Il y a %d candidats dans votre departement. \n " , nbCandidatsDept ) ;
break ;
break ;
case 2 :
case 2 :
// afficherCandidatsAdmis(tetudResp, nbCandidatsDept);
afficherCandidatsAdmis ( tetudResp , nbCandidatsDept ) ;
printf ( " Il y a %d candidats admis dans votre departement. \n " , nbCandidatsDeptAdmis ) ; // ! A revoir nbr incorrect
break ;
break ;
case 3 :
case 3 :
// afficherCandidatsRefuses(tetudResp, nbCandidatsDept);
afficherCandidatsRefuses ( tetudResp , nbCandidatsDept ) ;
afficherCandidats( tetudRespAttente , nbCandidatsDeptAttente ) ;
printf( " Il y a %d candidats refusés dans votre departement. \n " , ( nbCandidatsDept - ( nbCandidatsDeptAdmis + nbCandidatsDeptAttente ) ) ) ; // ! A revoir nbr incorrect
break ;
break ;
case 4 :
case 4 :
// afficherCandidatsAttente(tetudResp, nbCandidatsDept);
afficherCandidatsAttente ( tetudResp , nbCandidatsDept ) ;
afficherCandidats( tetudRespAdmis , nbCandidatsDeptAdmis ) ;
printf( " Il y a %d candidats en attente dans votre departement. \n " , nbCandidatsDeptAttente ) ; // ! A revoir nbr incorrect
break ;
break ;
case 5 :
case 5 :
afficherCandidat s ( tetudResp , nbCandidatsDept ) ;
afficherCandidat ( tetudResp , nbCandidatsDept ) ;
break ;
break ;
// case 6:
// case 6:
// afficherCandidat(tetud, nbCandidats);
// afficherStatutCandidat(tetudResp, nbCandidatsDept);
// break;
// case 7:
// statueCandidat(tetud, nbCandidats);
// break;
// case 8:
// nbCandidatsAdmis(tetud, nbCandidats);
// break;
// case 10:
// nbCandidatsRefuses(tetud, nbCandidats);
// break;
// case 11:
// nbCandidatsAttente(tetud, nbCandidats);
// break;
// break;
case 9 :
case 9 :
c = true ;
c = true ;