#include #include #include #include #include "structures.h" void global(void); /* Menus */ void menu(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandidats); void menuUtilisateur(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandidats); void menuAdministrateur(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandidats); /* Partie 1 */ ListeDept listenouv(void); ListeDept insererEnTete(ListeDept l, char departement[], int nbP, char resp[]); ListeDept inserer(ListeDept l, char departement[], int nbP, char resp[]); void afficher(ListeDept l); bool vide(ListeDept l); void afficherDept(ListeDept l); int rechercheDept(ListeDept l, char departement[], bool *trouve); ListeDept supprimerEnTete(ListeDept l); ListeDept supprimer(ListeDept l, char departement[]); int longueur(ListeDept l); int getNbP(ListeDept l, int pos); void setNbP(ListeDept l, int pos, int valeur); char *getResp(ListeDept l, int pos); void setResp(ListeDept l, int pos, char valeur[]); char *getDept(ListeDept l, int pos); void setResp(ListeDept l, int pos, char valeur[]); /* Fichier */ int chargementVillesIUT(VilleIUT *tiut[]); int rechercheVille(VilleIUT *tiut[], int nbIUT, char val[], bool *trouve); void sauvegardeVillesIUT(VilleIUT *tiut[], int nbIUT); /* Utilisateur */ void affichageVillesIUT(VilleIUT *tiut[], int nbIUT); void affichageDeptIUT(VilleIUT *tiut[], int nbIUT); void affichageNbP(VilleIUT *tiut[], int nbIUT); void affichageDeptParticulier(VilleIUT *tiut[], int nbIUT); /* Administrateur */ void modificationNbPDept(VilleIUT *tiut[], int nbIUT); void creationDept(VilleIUT *tiut[], int nbIUT); int suppressionDept(VilleIUT *tiut[], int nbIUT); void modificationRespDept(VilleIUT *tiut[], int nbIUT); // Partie 3 void afficherEtudiant(Etudiant mEtudiant); void sauvegarderCandidats(Etudiant *tetud[], int nbCandidats); void sauvegarderChoix(ListeChoix lChoix, FILE *flot); int chargerCandidats(Etudiant *tetud[]); // Liste Choix ListeChoix listenouvChoix(void); ListeChoix insererEnTeteChoix(ListeChoix lc, Choix choix); ListeChoix insererChoix(ListeChoix lc, Choix choix); ListeChoix supprimerEnTeteChoix(ListeChoix lc); ListeChoix supprimerChoix(ListeChoix lc, Choix choix); bool rechercheChoix(ListeChoix lc, Choix choix); Choix TeteChoix(ListeChoix lc); bool videChoix(ListeChoix lc); void afficherChoix(ListeChoix lc); int longueurChoix(ListeChoix lc); void afficherCandidatsChoix(Choix choix); // Authentification /* int ConnexionUtilisateur(char *login, char *mdp); ListeUtilisateurs chargerUtilisateurs(char *ficUtilisateurs, ListeUtilisateurs Utilisateurs); Utilisateur lireUtilisateur(FILE *flot); void afficherUtilisateur(Utilisateur utilisateur); void afficherUtilisateurs(ListeUtilisateurs listeUtilisateurs); ListeUtilisateurs insererUtilisateur(ListeUtilisateurs listeUtilisateurs, Utilisateur utilisateur); ListeUtilisateurs supprimerUtilisateur(ListeUtilisateurs listeUtilisateurs, char *nomUtilisateur); int videUtilisateurs(ListeUtilisateurs listeUtilisateurs); void sauveUtilisateurs(char *ficUtilisateurs, ListeUtilisateurs listeUtilisateurs); int rechercherUtilisateur(ListeUtilisateurs listeUtilisateurs, char *nomUtilisateur); int supprimerUtilisateur(ListeUtilisateurs listeUtilisateurs, char *nomUtilisateur); int menuUtilisateur(ListeUtilisateurs listeUtilisateurs); void global(void);*/