Siwa12100 2 years ago
commit 19f4f6e27c

@ -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 ) :

@ -506,7 +506,7 @@ int modifieRespDept(VilleIut *tVilleIut[], int nbVilles, char ville[], char nomD
return 0; return 0;
} }
/*void afficherDeptIutDonne(VilleIut **villeIut, int nbVille) void afficherDeptIutDonne(VilleIut **villeIut, int nbVille)
{ {
int res; int res;
char *nom; char *nom;
@ -514,14 +514,14 @@ int modifieRespDept(VilleIut *tVilleIut[], int nbVilles, char ville[], char nomD
afficheVillesIUT(villeIut, nbVille); afficheVillesIUT(villeIut, nbVille);
printf("Veuillez saisir le nom de l'iut que vous voulez afficher.\n"); printf("Veuillez saisir le nom de l'iut que vous voulez afficher.\n");
scanf("%s", nom); scanf("%s", nom);
res = existeVille(villeiut, nbVille, nom); res = existeVille(villeIut, nom, nbVille);
if (res == -1) if (res == -1)
{ {
printf("Cet IUT n'existe pas\n"); printf("Cet IUT n'existe pas\n");
return ; return ;
} }
afficherListe(villeiut[res]->lDept); afficherListe(villeIut[res]->lDept);
}*/ }
/** /**
* @brief Affiche les IUT possédant un département spécifique. * @brief Affiche les IUT possédant un département spécifique.
@ -607,17 +607,17 @@ void afficheNbPlacesDep(VilleIut *tVilleIut[], int nbVilles, char nomDept[])
} }
} }
/*int existeVille( VilleIut * tIut[], char ville[], int nbvilles ) int existeVille( VilleIut * tIut[], char ville[], int nbvilles )
{ {
int i = 0; int i = 0;
//recherche de la ville //recherche de la ville
for( e = 0; i < nbvilles; i ++ ) for( i = 0; i < nbvilles; i ++ )
{ {
if ( strcmp( tIut[i] -> nom, ville ) == 0 ) return i; // ville trouvée... if ( strcmp( tIut[i] -> nom, ville ) == 0 ) return i; // ville trouvée...
} }
return -1; return -1;
}*/ }
/** /**
@ -696,7 +696,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);
@ -711,7 +711,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
@ -719,14 +719,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