diff --git a/Msae.h b/Msae.h index ad3cd0c..622393e 100644 --- a/Msae.h +++ b/Msae.h @@ -38,10 +38,23 @@ typedef struct char nom[31]; char prenom[31]; float notes[4]; + float moyenne; int nombreChoix; Choix **tChoix; } Candidat; +typedef struct maillonCand +{ + Candidat *c; + struct maillonCand *suiv; +} MaillonCandidat, *ListeCand; + +typedef struct +{ + MaillonCandidat *t; + MaillonCandidat *q; +} FileCand; + /* Fonctions de Chargement */ @@ -153,4 +166,15 @@ void miseAJourChoixCand(Choix *tChoix[], int nombreChoix); /* Fonctions globale, menus*/ void globale2(void); -void menuCandidat2(Candidat *tCand[], int tMax); \ No newline at end of file +void menuCandidat2(Candidat *tCand[], int tMax); + +/* Fonctions de file d'attente */ + +FileCand filenouv(void); +FileCand adjq(FileCand f, Candidat *c); +FileCand supt(FileCand f); +FileCand supCand(FileCand f, int numeroC); +Candidat * tete(FileCand f); +int longueurFile(FileCand f); +int positionFileAttente(FileCand f, int numeroC); +bool videFile(FileCand f); \ No newline at end of file