Correction de bugs

master
Johnny RATTON 2 years ago
parent 5b6d39ff1a
commit e68c9d36d2

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

Loading…
Cancel
Save