diff --git a/sae.c b/sae.c index df98a28..2689681 100644 --- a/sae.c +++ b/sae.c @@ -4,6 +4,10 @@ #include"part1.h" + + + + void global(void) { int rep; @@ -25,4 +29,16 @@ void global(void) { part1(); } + if (rep == 2) + { + part2(); + } + if (rep == 3) + { + part3(); + } + if (rep == 4) + { + part4(); + } } \ No newline at end of file diff --git a/sae.h b/sae.h index a4c83c7..32d38ff 100644 --- a/sae.h +++ b/sae.h @@ -155,37 +155,37 @@ typedef struct { float noteDoss;//note après étude du dossier int nbchx;//nombre de choix Listechx lchx; -}Candidat2; +}Candidat; -typedef struct Mailloncand2{ - Candidat2 cand; - struct Mailloncand2 * suivcand; -}Mailloncand2; +typedef struct Mailloncand{ + Candidat cand; + struct Mailloncand * suivcand; +}Mailloncand; -typedef Mailloncand2 * Listecand2; +typedef Mailloncand * Listecand; Choix lireC(FILE *fe);//fonction extraite de la partie 2 -Listechx InsertTC2(Listechx list, Choix m);//Insert en tête de la liste -Listechx InsertC2(Listechx list, Choix m);//insert globalement dans liste de choix -Listecand2 InsertT2(Listecand2 list, Candidat2 c);//Insert en tête de la liste -Listecand2 Insert2(Listecand2 list, Candidat2 c);//insert globalement -Listecand2 InsertN2(Listecand2 list, Candidat2 c);//insert globalement en fonction de la note -Listecand2 Chargementlistecandidat2(FILE *fe, Listecand2 lC, int *nbC);// fonction de chargement de la liste des candidats -Listecand2 AcceptedOrWait(Listecand2 lC, int *nbC, float noteMin); -void Save2(Listecand2 lC, int nbC);//fonction de sauvegarde globale -void saveC2(Listecand2 lC, FILE *fs);//sauvegarde un candidat +Listechx InsertTC(Listechx list, Choix m);//Insert en tête de la liste +Listechx InsertC(Listechx list, Choix m);//insert globalement dans liste de choix +Listecand InsertT(Listecand list, Candidat c);//Insert en tête de la liste +Listecand Insert(Listecand list, Candidat c);//insert globalement +Listecand InsertN(Listecand list, Candidat c);//insert globalement en fonction de la note +Listecand Chargementlistecandidat(FILE *fe, Listecand lC, int *nbC);// fonction de chargement de la liste des candidats +Listecand AcceptedOrWait(Listecand lC, int *nbC, float noteMin); +void Save(Listecand lC, int nbC);//fonction de sauvegarde globale +void saveC(Listecand lC, FILE *fs);//sauvegarde un candidat void RespAdmin(void);//fonction dédiée au responsable d'admission -void AffC2(Candidat2 c); -void AffCh2(Choix c); -void AffListeCandidat2(Listecand2 l); +void AffC(Candidat c); +void AffCh(Choix c); +void AffListeCandidat(Listecand l); void AffListChoix(Listechx l); -void MajDecJury(Listecand2 lC, int nbC, int nbAcc);//mise à jour de la décision du jury -Listecand2 searchCand(Listecand2 lC, char *nom, char *prenom);//recherche d'un candidat par son nom et prénom -Listecand2 MajNote(Listecand2 lC, char *nom, char *prénom, float newNote);//mise à jour de la note de dossier du candidat -Listecand2 splitAccepted(Listecand2 origin);//fonction qui retourne la liste des admis -Listecand2 splitWait(Listecand2 origin);//fonction qui retourne la liste d'attente +void MajDecJury(Listecand lC, int nbC, int nbAcc);//mise à jour de la décision du jury +Listecand searchCand(Listecand lC, char *nom, char *prenom);//recherche d'un candidat par son nom et prénom +Listecand MajNote(Listecand lC, char *nom, char *prénom, float newNote);//mise à jour de la note de dossier du candidat +Listecand splitAccepted(Listecand origin);//fonction qui retourne la liste des admis +Listecand splitWait(Listecand origin);//fonction qui retourne la liste d'attente