diff --git a/commun.c b/commun.c index e6d90a1..b76320e 100644 --- a/commun.c +++ b/commun.c @@ -4,5 +4,16 @@ #include "commun.h" +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'; + + +} diff --git a/commun.h b/commun.h index d41cbd2..a3975d3 100644 --- a/commun.h +++ b/commun.h @@ -8,6 +8,18 @@ Brief : */ + + +typedef struct liste { + char ville[20]; + char dptmt[20]; + int dec; + int valid; + struct liste * suivant; +}Choix; + + + typedef struct { int nEtu; char nom[20]; @@ -17,14 +29,9 @@ typedef struct { float moyen; float moyspe; int nbchx; + Choix * lchx; }Candidat; -typedef struct { - char ville[20]; - char dptmt[20]; - int dec; - int valid; -}Choix;