/* programme : commun.h auteur : Lola Chalmin, Roxane Rossetto date : 13/12/22 finalité : SAE 1.02 Algorithme */ /* Brief : */ #define TAILLE 100; typedef struct { int nEtu;//numéro d'étudiant 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 Liste1{ Choix chx; struct List1 * suivchx; }Maillonchx; typedef Maillonchx * Listechx; typedef struct { 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; typedef struct Liste{ Candidat cand; struct Liste * suivcand; }Mailloncand; typedef Mailloncand * Listecand; Choix lirechx (void); Candidat lireCandidat(void); void AffC(Candidat c); Candidat lireFich1Cand (FILE * fe); void AffListeCandidat (Listecand l); Listecand recherche (Listecand l, char *nom ); void test (void);