|
|
|
@ -1021,9 +1021,11 @@ void gererAdmis(FileCand *f, ListeCand *l,float mini)
|
|
|
|
|
while (select!=9)
|
|
|
|
|
{
|
|
|
|
|
system("clear");
|
|
|
|
|
printf("1 Accepter des candidats\n");
|
|
|
|
|
printf("2 Refuser des candidats\n");
|
|
|
|
|
printf("9 Quitter\n");
|
|
|
|
|
printf("|--------------------------|\n");
|
|
|
|
|
printf("| 1 Accepter des candidats |\n");
|
|
|
|
|
printf("| 2 Refuser des candidats |\n");
|
|
|
|
|
printf("| 9 Quitter |\n");
|
|
|
|
|
printf("|--------------------------|\n");
|
|
|
|
|
scanf("%d%*c",&select);
|
|
|
|
|
if(select==1)
|
|
|
|
|
{
|
|
|
|
@ -1038,7 +1040,7 @@ void gererAdmis(FileCand *f, ListeCand *l,float mini)
|
|
|
|
|
c=tete(*f);
|
|
|
|
|
afficherCandidat(c);
|
|
|
|
|
printf("Refuser le candidat?(o/n)");
|
|
|
|
|
scanf("%c",&choix);
|
|
|
|
|
scanf("%c%*c",&choix);
|
|
|
|
|
if(choix=='o'||choix=='O')
|
|
|
|
|
{
|
|
|
|
|
*f=supt(*f);
|
|
|
|
@ -1092,7 +1094,8 @@ FileCand insertFile(Candidat *tCand[],int nbClfd)
|
|
|
|
|
clearpage();
|
|
|
|
|
for(i=0;i<nbClfd;i++)
|
|
|
|
|
{
|
|
|
|
|
printf("nbclfd : %d\ti : %d", nbClfd, i);
|
|
|
|
|
printf("Début de boucle\n");
|
|
|
|
|
printf("nbclfd : %d\ti : %d\n", nbClfd, i);
|
|
|
|
|
afficherCandChoix(tCand, nbClfd);
|
|
|
|
|
printf("%.2f\n", tCand[i]->moyenne);
|
|
|
|
|
clearpage();
|
|
|
|
@ -1106,6 +1109,7 @@ FileCand insertFile(Candidat *tCand[],int nbClfd)
|
|
|
|
|
if(strcmp(tCand[i]->tChoix[j]->ville, "Clermont-Ferrand") == 0 && strcmp(tCand[i]->tChoix[j]->dep, "Informatique") == 0)
|
|
|
|
|
{
|
|
|
|
|
tCand[i]->tChoix[j]->decisionResp = 2;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1116,7 +1120,7 @@ FileCand insertFile(Candidat *tCand[],int nbClfd)
|
|
|
|
|
tCand[i]->tChoix[j]->decisionResp = -1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
printf("Fin de boucle\n");
|
|
|
|
|
}
|
|
|
|
|
printf("Fin insertion dans file\n");
|
|
|
|
|
clearpage();
|
|
|
|
|