Roxane ROSSETTO 2 years ago
commit bbc7767904

@ -4,6 +4,7 @@
#include "commun.h"
<<<<<<< HEAD
Choix lirechx (void){
Choix chx;
printf("Saisir le choix de la ville\n");
@ -15,5 +16,25 @@ Choix lirechx (void){
chx.dptmt[strlen(chx.dptmt)-1]= '\0';
=======
Candidat lireCandidat(void)//fonction qui lit un candidat sur le clavier
{
printf("Numéro de candidat :\n");
scanf("%d", &nEtu);
printf("Nom du candidat :\n");
fgets();
printf("Prénom du candidat :\n");
fgets();
printf("Moyenne de maths :\n");
scanf("%f", &moymat);
printf("Moyenne de français :\n");
scanf("%f", &moyfr);
printf("Moyenne d'anglais :\n");
scanf("%f", &moyen);
printf("Moyenne de spécialité au choix :\n");
scanf("%f", &moyspe);
printf("Nombre de choix :\n");
scanf("%d", nbchx);
>>>>>>> a5955171bf9c365f184ce801438713c97d7e073b
}

@ -21,6 +21,7 @@ typedef struct liste {
typedef struct {
<<<<<<< HEAD
int nEtu;
char nom[20];
char prenom[20];
@ -32,6 +33,25 @@ typedef struct {
Choix * lchx;
}Candidat;
=======
int nEtu;//numéro d'étudiant
char nom[20];//nom de l'étudiant
char prenom[20];//prénom de l'étudiant
float moymat;//moyenne en maths
float moyfr;//moyenne en français
float moyen;//moyenne en anglais
float moyspe;//moyenne en spécialité
int nbchx;//nombre de choix
}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