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) {