|
|
|
@ -60,8 +60,10 @@ void identificationCandidat(int* id, ListeCandidats* listePointer, int* nbCandid
|
|
|
|
|
|
|
|
|
|
printf("Nom de famille : ");
|
|
|
|
|
scanf("%*c%[^\n]", candidat->nom);
|
|
|
|
|
|
|
|
|
|
printf("Prénom : ");
|
|
|
|
|
scanf("%*c%[^\n]", candidat->prenom);
|
|
|
|
|
|
|
|
|
|
printf("Moyenne de mathématiques : ");
|
|
|
|
|
verif = scanf("%f", &candidat->moyenneMath);
|
|
|
|
|
while((candidat->moyenneMath) < 0 || (candidat->moyenneMath) > 20 || verif == 0) {
|
|
|
|
@ -75,6 +77,7 @@ void identificationCandidat(int* id, ListeCandidats* listePointer, int* nbCandid
|
|
|
|
|
fprintf(stderr, "\e[0;91mLa moyenne entrée est incorrecte\n\e[0mEntrez votre moyenne de Français de l'année de terminale : ");
|
|
|
|
|
verif = scanf("%*c%f", &candidat->moyenneFrancais);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
printf("Moyenne de anglais : ");
|
|
|
|
|
verif = scanf("%f", &candidat->moyenneAnglais);
|
|
|
|
|
while((candidat->moyenneAnglais) < 0 || (candidat->moyenneAnglais) > 20 || verif == 0) {
|
|
|
|
@ -255,7 +258,9 @@ void menuResponsable(VilleIUT*** tiutPointer, ListeCandidats* listePointer, int*
|
|
|
|
|
switch (choix) {
|
|
|
|
|
case 1:
|
|
|
|
|
printf("Lister les candidatures...\n");
|
|
|
|
|
// TODO
|
|
|
|
|
|
|
|
|
|
printf("\n\n\e[1;32mAffichage des candidatures pour le département 'Informatique' de l'IUT 'Clermont-Ferrand'\n\n\e[0m");
|
|
|
|
|
afficherCandidaturesByDept(*listePointer, *nbCandidats, "Clermont-Ferrand", "Informatique");
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
printf("Traiter les candidatures...\n");
|
|
|
|
|