lire choix + charg

master
Roxane ROSSETTO 2 years ago
parent be98f85d65
commit 19f1dbcf85

@ -7,6 +7,7 @@
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';
@ -14,8 +15,11 @@ Choix lirechx (void){
printf("Saisir le choix du departement d'étude\n");
fgets(chx.dptmt, 20, stdin);
chx.dptmt[strlen(chx.dptmt)-1]= '\0';
dghdkfghkeuruufygsdygsydtfyjztfhshc
chx.dec = 0;
chx.valid = 0;
return chx;
}
@ -51,3 +55,37 @@ Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier
scanf("%d", nbchx);
}
Choix * chargeChoix(Choix *tchoix, TAILLE, nbchx){
}

@ -7,15 +7,14 @@
/*
Brief :
*/
#define TAILLE 100;
typedef struct liste {
typedef struct {
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;
@ -34,4 +33,41 @@ typedef struct {
Candidat lireCandidat(void);
Choix lirechx (void);
typedef struct liste {
Choix chx;
struct liste * suivant;
}Maillon;

Loading…
Cancel
Save