diff --git a/src/I/un.h b/src/I/un.h index febbaa2..d994da3 100644 --- a/src/I/un.h +++ b/src/I/un.h @@ -1,31 +1,46 @@ -#include "un.c" +/*! + \file un.h + \author GOIGOUX Lucie & JEUDI--LEMOINE Alix + \date 22/12/22 + \brief Partie 1 de la SAE 1.02 -const unsigned LENMAX = 30; + Application de gestion des candidature dans les IUT de France +*/ +const unsigned lenMax = 30; typedef struct MaillonDept { - char departement[LENMAX]; + char departement[lenMax]; int nbP; - char responsable[LENMAX]; + char responsable[lenMax]; struct MaillonDept* suiv; } MaillonDept; -typedef MaillonDept* ListDept; +typedef MaillonDept* ListeDept; - -typedef struct VilleIUT { - char ville[LENMAX]; +typedef struct { + char ville[lenMax]; ListeDept ldept; } VilleIUT; - - - - void titreMenuPrincipal(void); void menuCandidat(void); void menuAdmin(void); void menuResponsable(void); void menuPrincipal(void); -int chargementDonnees (VilleIUT *tiut[]); \ No newline at end of file + +void ajouterVille(VilleIUT** tiut, VilleIUT* ville, int* nbVilles); +void afficherListeVilles(VilleIUT** tiut, int nbVilles); + +ListeDept creerListeDepartement(void); +void afficherListeDepartement(VilleIUT ville); +MaillonDept* creerDepartement(char* departement, int nbP, char* responsable); +ListeDept ajouterDepartement(ListeDept ldept, MaillonDept* dept); +ListeDept supprimerDepartement(ListeDept ldept, char* searchDept); +void modifierNbPlaces(VilleIUT** tiut, int nbVilles, char* searchIUT, char* searchDept, int nb); + +void saveVilles(VilleIUT* tiut[], int nbVilles); +VilleIUT** readVilles(int* nbVilles); + +void test(void); \ No newline at end of file