master
Lola CHALMIN 2 years ago
commit bb44c8fcfc

@ -4,6 +4,19 @@
#include "commun.h" #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 lireCandidat(void)//fonction qui lit un candidat sur le clavier
{ {
Candidat c; 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"); printf("Moyenne de spécialité au choix :\n");
scanf("%f", &c.moyspe); scanf("%f", &c.moyspe);
printf("Nombre de choix :\n"); printf("Nombre de choix :\n");
<<<<<<< HEAD
scanf("%d", &c.nbchx); scanf("%d", &c.nbchx);
=======
scanf("%d", nbchx);
>>>>>>> a5955171bf9c365f184ce801438713c97d7e073b
>>>>>>> bbc776790433b8b589eefcf07832ea90d9d2ae87
} }

@ -8,7 +8,32 @@
Brief : Brief :
*/ */
typedef struct liste {
char ville[20];
char dptmt[20];
int dec;
int valid;
struct liste * suivant;
}Choix;
typedef struct { 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 int nEtu;//numéro d'étudiant
char nom[20];//nom de l'étudiant char nom[20];//nom de l'étudiant
char prenom[20];//pré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 dec;//décision du choix
int valid;//validation du candidat int valid;//validation du candidat
}Choix; }Choix;
>>>>>>> a5955171bf9c365f184ce801438713c97d7e073b

Loading…
Cancel
Save