From e68c9d36d29667208189b17114b2add5afcfbbf7 Mon Sep 17 00:00:00 2001 From: johnny Date: Fri, 13 Jan 2023 22:54:12 +0100 Subject: [PATCH] Correction de bugs --- Commun.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Commun.c b/Commun.c index c9d68fa..b1803ca 100644 --- a/Commun.c +++ b/Commun.c @@ -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;imoyenne); 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();