From 42d1e686ed134608ee50f36b22ed7e16c30ec931 Mon Sep 17 00:00:00 2001 From: Lola CHALMIN Date: Tue, 13 Dec 2022 16:09:37 +0100 Subject: [PATCH] commun --- commun.c | 16 ++++++++++------ commun.h | 30 +++++------------------------- 2 files changed, 15 insertions(+), 31 deletions(-) diff --git a/commun.c b/commun.c index f13ae75..ff0f8fb 100644 --- a/commun.c +++ b/commun.c @@ -4,7 +4,7 @@ #include "commun.h" -<<<<<<< HEAD + Choix lirechx (void){ Choix chx; printf("Saisir le choix de la ville\n"); @@ -16,7 +16,15 @@ Choix lirechx (void){ chx.dptmt[strlen(chx.dptmt)-1]= '\0'; -======= + + + + + + + + + Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier { Candidat c; @@ -38,11 +46,7 @@ Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier printf("Moyenne de spécialité au choix :\n"); scanf("%f", &c.moyspe); printf("Nombre de choix :\n"); -<<<<<<< HEAD scanf("%d", &c.nbchx); -======= scanf("%d", nbchx); ->>>>>>> a5955171bf9c365f184ce801438713c97d7e073b ->>>>>>> bbc776790433b8b589eefcf07832ea90d9d2ae87 } diff --git a/commun.h b/commun.h index d41a9a4..e293836 100644 --- a/commun.h +++ b/commun.h @@ -11,29 +11,16 @@ typedef struct liste { - char ville[20]; - char dptmt[20]; - int dec; - int valid; + char ville[20];//ville choisie + char dptmt[20];//département choisi + int dec;//décision du choix + int valid;//validation du candidat struct liste * suivant; }Choix; typedef struct { -<<<<<<< HEAD - int nEtu; - char nom[20]; - char prenom[20]; - float moymat; - float moyfr; - float moyen; - float moyspe; - int nbchx; - Choix * lchx; -}Candidat; - -======= int nEtu;//numéro d'étudiant char nom[20];//nom de l'étudiant char prenom[20];//prénom de l'étudiant @@ -42,16 +29,9 @@ typedef struct { float moyen;//moyenne en anglais float moyspe;//moyenne en spécialité int nbchx;//nombre de choix + Choix * lchx; }Candidat; -typedef struct { - char ville[20];//ville choisie - char dptmt[20];//département choisi - int dec;//décision du choix - int valid;//validation du candidat -}Choix; ->>>>>>> a5955171bf9c365f184ce801438713c97d7e073b - Candidat lireCandidat(void); \ No newline at end of file