|
|
|
@ -46,7 +46,7 @@ candidat* LoadCandid(void)
|
|
|
|
|
return Tabcandidat;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void RechercheCandidat(int ID, int nbcandidat, int tmax,candidat *tcandidat)
|
|
|
|
|
void RechercheCandidat(int ID, int nbcandidat,candidat *tcandidat)
|
|
|
|
|
{
|
|
|
|
|
for(int i=0;i<nbcandidat;++i)
|
|
|
|
|
{
|
|
|
|
@ -70,16 +70,19 @@ void RechercheCandidat(int ID, int nbcandidat, int tmax,candidat *tcandidat)
|
|
|
|
|
Departement : %s\n\
|
|
|
|
|
Décision département : ",tcandidat[i].TabVoeu[y]->ville,tcandidat[i].TabVoeu[y]->dep);
|
|
|
|
|
if(tcandidat[i].TabVoeu[y]->ddep==0) printf("Dossier non traité\n");
|
|
|
|
|
else {
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if(tcandidat[i].TabVoeu[y]->ddep==1) printf("Admis\n");
|
|
|
|
|
else {
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (tcandidat[i].TabVoeu[y]->ddep==2) printf("Liste d'attente\n");
|
|
|
|
|
else printf("Refusé\n");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
printf("Décision du candidat : ");
|
|
|
|
|
if(tcandidat[i].TabVoeu[y]->vcand==0) printf("Décision non rendu\n");
|
|
|
|
|
else {
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if(tcandidat[i].TabVoeu[y]->vcand==1) printf("Accepté\n");
|
|
|
|
|
else printf("Refusé");
|
|
|
|
|
}
|
|
|
|
@ -88,7 +91,51 @@ void RechercheCandidat(int ID, int nbcandidat, int tmax,candidat *tcandidat)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
printf("Candidat non trouvé");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ListeCandidat(int nbcandidat,candidat *tcandidat)
|
|
|
|
|
{
|
|
|
|
|
for(int i=0;i<nbcandidat;++i)
|
|
|
|
|
{
|
|
|
|
|
printf("Candidat n°%d :\n\
|
|
|
|
|
Numéro : %d\n\
|
|
|
|
|
Nom : %s\n\
|
|
|
|
|
Prenom : %s\n\
|
|
|
|
|
Note de mathématique : %f\n\
|
|
|
|
|
Note de français : %f\n\
|
|
|
|
|
Note d'anglais : %f\n\
|
|
|
|
|
Note de spécialité : %f\n\
|
|
|
|
|
Nombre de voeu : %d\n\
|
|
|
|
|
Voeu :\n",i,tcandidat[i].numcandid,tcandidat[i].surname,tcandidat[i].name,\
|
|
|
|
|
tcandidat[i].note[0],tcandidat[i].note[1],tcandidat[i].note[2],\
|
|
|
|
|
tcandidat[i].note[3],tcandidat[i].nbchoix);
|
|
|
|
|
for(int y=0;y<tcandidat[i].nbchoix;++y)
|
|
|
|
|
{
|
|
|
|
|
printf("Ville : %s\n\
|
|
|
|
|
Departement : %s\n\
|
|
|
|
|
Décision département : ",tcandidat[i].TabVoeu[y]->ville,tcandidat[i].TabVoeu[y]->dep);
|
|
|
|
|
if(tcandidat[i].TabVoeu[y]->ddep==0) printf("Dossier non traité\n");
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if(tcandidat[i].TabVoeu[y]->ddep==1) printf("Admis\n");
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (tcandidat[i].TabVoeu[y]->ddep==2) printf("Liste d'attente\n");
|
|
|
|
|
else printf("Refusé\n");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
printf("Décision du candidat : ");
|
|
|
|
|
if(tcandidat[i].TabVoeu[y]->vcand==0) printf("Décision non rendu\n");
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if(tcandidat[i].TabVoeu[y]->vcand==1) printf("Accepté\n");
|
|
|
|
|
else printf("Refusé");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
printf("Candidat non trouvé");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//void gestionPhaseCandidatures(); A FAIRE.*/
|
|
|
|
|