|
|
|
@ -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 */
|
|
|
|
|
|
|
|
|
@ -154,3 +167,14 @@ void miseAJourChoixCand(Choix *tChoix[], int nombreChoix);
|
|
|
|
|
/* Fonctions globale, menus*/
|
|
|
|
|
void globale2(void);
|
|
|
|
|
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);
|