diff --git a/commun.c b/commun.c index 4469eb6..f13ae75 100644 --- a/commun.c +++ b/commun.c @@ -4,6 +4,19 @@ #include "commun.h" +<<<<<<< HEAD +Choix lirechx (void){ + Choix chx; + printf("Saisir le choix de la ville\n"); + fgets(chx.ville, 20, stdin); + chx.ville[strlen(chx.ville)-1]= '\0'; + + printf("Saisir le choix du departement d'étude\n"); + fgets(chx.dptmt, 20, stdin); + chx.dptmt[strlen(chx.dptmt)-1]= '\0'; + + +======= Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier { Candidat c; @@ -25,6 +38,11 @@ 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 9bc314f..d41a9a4 100644 --- a/commun.h +++ b/commun.h @@ -8,7 +8,32 @@ Brief : */ + + +typedef struct liste { + char ville[20]; + char dptmt[20]; + int dec; + int valid; + 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 @@ -25,6 +50,7 @@ typedef struct { int dec;//décision du choix int valid;//validation du candidat }Choix; +>>>>>>> a5955171bf9c365f184ce801438713c97d7e073b