master
Lola CHALMIN 2 years ago
parent bb44c8fcfc
commit 42d1e686ed

@ -4,7 +4,7 @@
#include "commun.h" #include "commun.h"
<<<<<<< HEAD
Choix lirechx (void){ Choix lirechx (void){
Choix chx; Choix chx;
printf("Saisir le choix de la ville\n"); printf("Saisir le choix de la ville\n");
@ -16,7 +16,15 @@ Choix lirechx (void){
chx.dptmt[strlen(chx.dptmt)-1]= '\0'; 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;
@ -38,11 +46,7 @@ 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); scanf("%d", nbchx);
>>>>>>> a5955171bf9c365f184ce801438713c97d7e073b
>>>>>>> bbc776790433b8b589eefcf07832ea90d9d2ae87
} }

@ -11,29 +11,16 @@
typedef struct liste { typedef struct liste {
char ville[20]; char ville[20];//ville choisie
char dptmt[20]; char dptmt[20];//département choisi
int dec; int dec;//décision du choix
int valid; int valid;//validation du candidat
struct liste * suivant; struct liste * suivant;
}Choix; }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
@ -42,16 +29,9 @@ typedef struct {
float moyen;//moyenne en anglais float moyen;//moyenne en anglais
float moyspe;//moyenne en spécialité float moyspe;//moyenne en spécialité
int nbchx;//nombre de choix int nbchx;//nombre de choix
Choix * lchx;
}Candidat; }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); Candidat lireCandidat(void);
Loading…
Cancel
Save