#include #include #include #include typedef struct { char dept[31]; int nbP; char respAd[31]; } Departement; typedef struct maillonDept { Departement d; struct maillonDept *suiv; } MaillonDept,*ListeDept; typedef struct { char nom[31]; ListeDept lDept; } VilleIUT; /* Fonctions de Chargement */ int chargement(VilleIUT *tiut[],int tMax); Departement lireDep(FILE *flot); void enregistrement(VilleIUT *tiut[], int tLog); /* Fonctions d'affichage */ void afficherPlace(Departement d); void afficherDep(Departement d); void afficherVille(VilleIUT v); void afficherTIUT(VilleIUT *tiut[], int tLog); void afficherVilleDep(VilleIUT v); void afficheDeptDesIUT(VilleIUT *tiut[], int tLog); /* Fonctions de Listes */ ListeDept listeDeptNouv(void); ListeDept insererEntete(ListeDept lDept,Departement d); ListeDept insererDept(ListeDept lDept, Departement d); ListeDept supprimerEntete(ListeDept lDept); ListeDept supprimerDept(ListeDept lDept, char *dep); bool vide(ListeDept lDept); int longueur(ListeDept lDept); /* Fonctions de département */ void creerDept(VilleIUT *tiut[],int tLog); void retirerDept(VilleIUT *tiut[], int tLog); /* Fonctions de gestion du tableau */ int insererVille(VilleIUT *tiut[], char nomV[],int *tLog, int tMax, int pos); int supprimerVille(VilleIUT *tiut[], char nomV[], int *tLog, int pos); /* Fonctions de recherche */ ListeDept rechercherDept(ListeDept lDept, char dept[], int *trouve); int rechercheIUT(VilleIUT *tiut[], int tLog, char ville[], int *trouve); /* Fonctions de mise à jour */ void miseAJourGlobale(VilleIUT *tiut[], int tLog); void miseAJourNomDept(Departement *d,ListeDept l); void miseAJourResp(Departement *d); void miseAJourPlaces(Departement *d); /* Fonctions de gestion d'affichage, menus et globale */ int login(void); void menuAdmin(VilleIUT *tiut[], int *tLog, int tMax); void menuCandidat(VilleIUT *tiut[], int *tLog, int tMax); void clearpage(void); void globale(void)