lchoix, mise en commentaire de afficherCandidat et afficherCandidats

master
loris OBRY 2 years ago
parent 6644d16025
commit 5ede353861

@ -43,7 +43,7 @@ typedef struct
char prenom[50]; char prenom[50];
float notes[4]; float notes[4];
int nbChoix; int nbChoix;
Choix *choix; lChoix lchoix;
}Candidat; }Candidat;
//Proposition de structure de candidature pour la Partie 3 ( jean ) : //Proposition de structure de candidature pour la Partie 3 ( jean ) :

@ -698,7 +698,7 @@ void menuAdmin(VilleIut **villeIut, int nbVilles)
* @brief Affiche les informations d'un candidat * @brief Affiche les informations d'un candidat
* @param candidat Le candidat à afficher * @param candidat Le candidat à afficher
*/ */
void afficherCandidat(Candidat candidat) /* void afficherCandidat(Candidat candidat)
{ {
printf("Numéro du candidat : %d\n", candidat.numero); printf("Numéro du candidat : %d\n", candidat.numero);
printf("Nom : %s\n", candidat.nom); printf("Nom : %s\n", candidat.nom);
@ -713,7 +713,7 @@ void afficherCandidat(Candidat candidat)
printf(" Décision du département : %d\n", candidat.choix[i].decisionDepartement); printf(" Décision du département : %d\n", candidat.choix[i].decisionDepartement);
printf(" Validation : %d\n", candidat.choix[i].validationCandidat); printf(" Validation : %d\n", candidat.choix[i].validationCandidat);
} }
} } */
/** /**
* @brief Affiche la liste des candidats * @brief Affiche la liste des candidats
@ -721,14 +721,14 @@ void afficherCandidat(Candidat candidat)
* @param candidats Le tableau de candidats à afficher * @param candidats Le tableau de candidats à afficher
* @param nbCandidats Le nombre de candidats dans le tableau * @param nbCandidats Le nombre de candidats dans le tableau
*/ */
void afficherCandidats(Candidat *candidats, int nbCandidats) /*void afficherCandidats(Candidat *candidats, int nbCandidats)
{ {
for (int i = 0; i < nbCandidats; i++) for (int i = 0; i < nbCandidats; i++)
{ {
printf("\nCandidat %d :\n", i + 1); printf("\nCandidat %d :\n", i + 1);
afficherCandidat(candidats[i]); afficherCandidat(candidats[i]);
} }
} } */
/* /*
================================================ ================================================

Loading…
Cancel
Save