From 781dbf406c6906d0ff4444313e1bfa3424893c4e Mon Sep 17 00:00:00 2001 From: Guillaume Date: Fri, 13 Jan 2023 15:00:48 +0100 Subject: [PATCH] creer candid --- source/main.c | 3 ++- source/result.don | 1 - source/sae.c | 56 +++++++++++++++++++++++++++++++++++++++++++++++ source/test.c | 16 ++++++++++++++ 4 files changed, 74 insertions(+), 2 deletions(-) delete mode 100644 source/result.don diff --git a/source/main.c b/source/main.c index 3b65606..72fb8f3 100644 --- a/source/main.c +++ b/source/main.c @@ -9,7 +9,8 @@ int main(void) // color // #endif - Globale(); + //Globale(); + guillaume(); //testJean(); return 0; diff --git a/source/result.don b/source/result.don deleted file mode 100644 index 45ebb94..0000000 --- a/source/result.don +++ /dev/null @@ -1 +0,0 @@ -Clermont-Ferrand Biologie 120 Perrier Yanic \ No newline at end of file diff --git a/source/sae.c b/source/sae.c index cc6bbb7..24a29c0 100644 --- a/source/sae.c +++ b/source/sae.c @@ -714,6 +714,62 @@ void afficherCandidats(Candidat *candidats, int nbCandidats) } +int creerCandid(Candidat tCand[], int nbCandidats) +{ + int i=0; + Candidat c; + + printf("Rentrez le numéro du candidat :"); + scanf("%d%*c",&c.numero); + while(i