You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
845 B
75 lines
845 B
/*
|
|
programme : commun.h
|
|
auteur : Lola Chalmin, Roxane Rossetto
|
|
date : 13/12/22
|
|
finalité : SAE 1.02 Algorithme
|
|
*/
|
|
/*
|
|
Brief :
|
|
*/
|
|
#define TAILLE 100;
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
typedef struct {
|
|
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
|
|
Choix * lchx;
|
|
}Candidat;
|
|
|
|
|
|
|
|
|
|
Candidat lireCandidat(void);
|
|
Choix lirechx (void);
|
|
void AffC(Candidat c);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct liste {
|
|
Choix chx;
|
|
struct liste * suivant;
|
|
}Maillon;
|
|
|
|
|