master
Lola CHALMIN 2 years ago
parent bb44c8fcfc
commit 42d1e686ed

@ -4,7 +4,7 @@
#include "commun.h"
<<<<<<< HEAD
Choix lirechx (void){
Choix chx;
printf("Saisir le choix de la ville\n");
@ -16,7 +16,15 @@ Choix lirechx (void){
chx.dptmt[strlen(chx.dptmt)-1]= '\0';
=======
Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier
{
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");
scanf("%f", &c.moyspe);
printf("Nombre de choix :\n");
<<<<<<< HEAD
scanf("%d", &c.nbchx);
=======
scanf("%d", nbchx);
>>>>>>> a5955171bf9c365f184ce801438713c97d7e073b
>>>>>>> bbc776790433b8b589eefcf07832ea90d9d2ae87
}

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