From 8a6b2c228d27298e6c70847f1d6031a3a78825df Mon Sep 17 00:00:00 2001 From: "yann.champeau" Date: Fri, 13 Jan 2023 19:27:02 +0100 Subject: [PATCH] Ajustements. --- src/partie2/saeP2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/partie2/saeP2.c b/src/partie2/saeP2.c index 4ffcf0f..cb19d66 100644 --- a/src/partie2/saeP2.c +++ b/src/partie2/saeP2.c @@ -204,13 +204,13 @@ void CreateCandidat(candidat** tcandid,int* nbcandidat) printf("Merci de rentrez votre prénom :"); fgets(Candidat_Ajout->surname, 31, stdin); printf("Merci de rentrez votre note en Mathématique :"); - scanf("%d",&Candidat_Ajout->note[0]); + scanf("%f",Candidat_Ajout->note[0]); printf("Merci de rentrez votre note en Français :"); - scanf("%d",&Candidat_Ajout->note[1]); + scanf("%f",Candidat_Ajout->note[1]); printf("Merci de rentrez votre note en Anglais :"); - scanf("%d",&Candidat_Ajout->note[2]); + scanf("%f",Candidat_Ajout->note[2]); printf("Merci de rentrez votre note en Spécialité :"); - scanf("%d",&Candidat_Ajout->note[3]); + scanf("%f",Candidat_Ajout->note[3]); tcandid=(candidat**)realloc (tcandid,sizeof(candidat)*((*nbcandidat)++)); if (tcandid==NULL) {