|
|
@ -536,11 +536,11 @@ void lancerPhaseCandidature(int *phaseCandidature)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("La phase de candidature n'a pas été lancée.\n");
|
|
|
|
printf("La phase de candidature n'a pas été lancée.\n");
|
|
|
|
printf("\nÊtes-vous sur de lancer la phase de candidature?(o/n)\t");
|
|
|
|
printf("\nÊtes-vous sur de lancer la phase de candidature?(o/n)\t");
|
|
|
|
scanf("%c",&choix);
|
|
|
|
scanf("%c%*c",&choix);
|
|
|
|
if(choix!='O' && choix!='o')
|
|
|
|
if(choix!='O' && choix!='o')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("La phase de candidature n'a pas été lancée.\n");
|
|
|
|
printf("La phase de candidature n'a pas été lancée.\n");
|
|
|
|
scanf("%c",&choix);
|
|
|
|
scanf("%c%*c",&choix);
|
|
|
|
clearpage();
|
|
|
|
clearpage();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -551,11 +551,11 @@ void lancerPhaseCandidature(int *phaseCandidature)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("La phase de candidature est en court.\n");
|
|
|
|
printf("La phase de candidature est en court.\n");
|
|
|
|
printf("\nÊtes-vous sur d'arrêter la phase de candidature?(o/n)\t");
|
|
|
|
printf("\nÊtes-vous sur d'arrêter la phase de candidature?(o/n)\t");
|
|
|
|
scanf("%c",&choix);
|
|
|
|
scanf("%c%*c",&choix);
|
|
|
|
if(choix!='O' && choix!='o')
|
|
|
|
if(choix!='O' && choix!='o')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("La phase de candidature n'a pas été arrêtée.\n");
|
|
|
|
printf("La phase de candidature n'a pas été arrêtée.\n");
|
|
|
|
scanf("%c",&choix);
|
|
|
|
scanf("%c%*c",&choix);
|
|
|
|
clearpage();
|
|
|
|
clearpage();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -629,12 +629,12 @@ int login(Candidat *tCand[],int *tMax,int *pos) /* Affiche un menu de connexion
|
|
|
|
if(choix=='o'|| choix=='O')
|
|
|
|
if(choix=='o'|| choix=='O')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("\nInsérer votre numéro de Candidat :\t");
|
|
|
|
printf("\nInsérer votre numéro de Candidat :\t");
|
|
|
|
scanf("%d",&numC);
|
|
|
|
scanf("%d%*c",&numC);
|
|
|
|
*pos=rechercherCandidat(tCand,*tMax,numC,&trouve);
|
|
|
|
*pos=rechercherCandidat(tCand,*tMax,numC,&trouve);
|
|
|
|
while(trouve==0)
|
|
|
|
while(trouve==0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf("\nCe numéro n'existe pas. Veuillez Re-saisir :\t");
|
|
|
|
printf("\nCe numéro n'existe pas. Veuillez Re-saisir :\t");
|
|
|
|
scanf("%d",&numC);
|
|
|
|
scanf("%d%*c",&numC);
|
|
|
|
*pos=rechercherCandidat(tCand,*tMax,numC,&trouve);
|
|
|
|
*pos=rechercherCandidat(tCand,*tMax,numC,&trouve);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
@ -938,14 +938,14 @@ void menuResp(Candidat *tCand[],int tMax,int phaseCandidature)
|
|
|
|
ListeCand ladmis;
|
|
|
|
ListeCand ladmis;
|
|
|
|
system("clear");
|
|
|
|
system("clear");
|
|
|
|
printf("Quel est le nombre de candidat admis ?\t");
|
|
|
|
printf("Quel est le nombre de candidat admis ?\t");
|
|
|
|
scanf("%d",&admis);
|
|
|
|
scanf("%d%*c",&admis);
|
|
|
|
printf("\nQuelle moyenne minimale les candidats doivent avoir ?\t");
|
|
|
|
printf("\nQuelle moyenne minimale les candidats doivent avoir ?\t");
|
|
|
|
scanf("%f",&mini);
|
|
|
|
scanf("%f",&mini);
|
|
|
|
f=insertCroiFile(tCand,tMax,mini);
|
|
|
|
f=insertCroiFile(tCand,tMax,mini);
|
|
|
|
printf("\n\nVoici les candidats ayant sélectionner votre département :\t");
|
|
|
|
printf("\n\nVoici les candidats ayant sélectionner votre département :\t");
|
|
|
|
afficher(f);
|
|
|
|
afficher(f);
|
|
|
|
printf("Voulez-vous en refuser ? (insérer son numéro ou 0 pour quitter)\t");
|
|
|
|
printf("Voulez-vous en refuser ? (insérer son numéro ou 0 pour quitter)\t");
|
|
|
|
scanf("%d",&deci);
|
|
|
|
scanf("%d%*c",&deci);
|
|
|
|
while (deci!=0)
|
|
|
|
while (deci!=0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pos=rechercherCandidat(tCand,tMax,deci, &trouve);
|
|
|
|
pos=rechercherCandidat(tCand,tMax,deci, &trouve);
|
|
|
@ -956,7 +956,7 @@ void menuResp(Candidat *tCand[],int tMax,int phaseCandidature)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else printf("Mauvais numéro. Taper 0 pour quitter\n");
|
|
|
|
else printf("Mauvais numéro. Taper 0 pour quitter\n");
|
|
|
|
printf("Voulez-vous en refuser ? (insérer son numéro ou 0 pour quitter)\t");
|
|
|
|
printf("Voulez-vous en refuser ? (insérer son numéro ou 0 pour quitter)\t");
|
|
|
|
scanf("%d",&deci);
|
|
|
|
scanf("%d%*c",&deci);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ladmis=listeCandNouv();
|
|
|
|
ladmis=listeCandNouv();
|
|
|
|
f=fileToAdmis(f,&ladmis,admis);
|
|
|
|
f=fileToAdmis(f,&ladmis,admis);
|
|
|
|