From 8d8b4fe48c8d27a83324a1f9f722da0564c0e0f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20DAIM?= Date: Thu, 12 Jan 2023 14:59:10 +0100 Subject: [PATCH] modif menus login et lancerCandidature et ajout videFile --- Msae.h | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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