From 5f88def9b7fd41fd3ffb6419686c0a99bbff251a Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Fri, 13 Jan 2023 19:29:17 +0100 Subject: [PATCH] Ajout structures Partie 4 --- src/structures.h | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/src/structures.h b/src/structures.h index bc90d3b..801eb66 100644 --- a/src/structures.h +++ b/src/structures.h @@ -18,18 +18,37 @@ typedef struct { // STRUCTURES PARTIE 2 typedef struct { - char ville[LEN_MAX], departement[LEN_MAX]; - int decision, validation; + char ville[LEN_MAX], departement[LEN_MAX]; + int decision, validation; } Candidature; typedef Candidature** ListeCandidatures; typedef struct { - int id; - char nom[LEN_MAX], prenom[LEN_MAX]; - float moyenneMath, moyenneFrancais, moyenneAnglais, moyenneSpecialite, noteGlobale; - int nbCandidatures; - ListeCandidatures listeCandidatures; + int id; + char nom[LEN_MAX], prenom[LEN_MAX]; + float moyenneMath, moyenneFrancais, moyenneAnglais, moyenneSpecialite, noteGlobale; // noteGlobale ajoutée Partie III + int nbCandidatures; + ListeCandidatures listeCandidatures; } Candidat; -typedef Candidat** ListeCandidats; \ No newline at end of file +typedef Candidat** ListeCandidats; + +// STRUCTURES PARTIE IV + +typedef struct { + char nom[LEN_MAX], prenom[LEN_MAX]; + float moyenneMath, moyenneFrancais, moyenneAnglais, moyenneSpecialite, noteGlobale; +} CandidatTraite; + +typedef struct Maillon { + CandidatTraite candidat; + struct Maillon *suivant; +} Maillon; + +typedef struct { + Maillon *tete; + Maillon *queue; +} FileAttente; + +typedef CandidatTraite** ListeAdmis; \ No newline at end of file