Maj des fichiers .h pour une meilleures ergonomie

master
Johnny RATTON 2 years ago
parent 9eb0d6fe52
commit 5fd12f21bb

@ -3,9 +3,8 @@
#include <string.h> #include <string.h>
#include <stdbool.h> #include <stdbool.h>
//################ Types de structures ############### typedef struct
{
typedef struct{
char dept[31]; char dept[31];
int nbP; int nbP;
char respAd[31]; char respAd[31];
@ -22,16 +21,55 @@ typedef struct
{ {
char nom[31]; char nom[31];
ListeDept lDept; ListeDept lDept;
} VilleIUT; } VilleIUT;
ListeDept listenouv(void); /* Fonctions de Chargement */
ListeDept InsérerEntete(ListeDept l,int nb);
ListeDept Insérer(Liste l, int x); int chargement(VilleIUT *tiut[],int tMax);
ListeDept supprimerEntete(ListeDept l); Departement lireDep(FILE *flot);
ListeDept supprimer(ListeDept l, int x);
int longueur(ListeDept l); /* Fonctions d'affichage */
bool vide(ListeDept l);
ListeDept ajouterEnqueue(ListeDept l, int x); void afficherPlace(Departement d);
int tete(ListeDept l); void afficherDep(Departement d);
bool rechercher(ListeDept l, int x); void afficherVille(VilleIUT v);
void afficherTIUT(VilleIUT *tiut[], int tLog);
void afficherVilleDep(VilleIUT v);
/* 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, Departement d);
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[], Departement d, int *tLog, int tMax, 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 miseAJourNomDept(VilleIUT *tiut[], int tLog);
void miseAJourResp(VilleIUT *tiut[], int tLog);
void miseAJourPlaces(VilleIUT *tiut[], int tLog);
/* 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);

@ -23,30 +23,53 @@ typedef struct
ListeDept lDept; ListeDept lDept;
} VilleIUT; } VilleIUT;
/* Fonctions de Chargement */
int chargement(VilleIUT *tiut[],int tMax); int chargement(VilleIUT *tiut[],int tMax);
Departement lireDep(FILE *flot); Departement lireDep(FILE *flot);
int insererVille(VilleIUT *tiut[], char nomV[], Departement d, int *tLog, int tMax, int pos);
/* 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);
/* Fonctions de Listes */
ListeDept listeDeptNouv(void); ListeDept listeDeptNouv(void);
ListeDept insererEntete(ListeDept lDept,Departement d); ListeDept insererEntete(ListeDept lDept,Departement d);
ListeDept insererDept(ListeDept lDept, Departement d); ListeDept insererDept(ListeDept lDept, Departement d);
ListeDept supprimerEntete(ListeDept lDept); ListeDept supprimerEntete(ListeDept lDept);
ListeDept supprimerDept(ListeDept lDept, Departement d); ListeDept supprimerDept(ListeDept lDept, Departement d);
bool vide(ListeDept lDept);
int longueur(ListeDept lDept);
/* Fonctions de département */
void creerDept(VilleIUT *tiut[],int tLog); void creerDept(VilleIUT *tiut[],int tLog);
void retirerDept(VilleIUT *tiut[], int *tLog); void retirerDept(VilleIUT *tiut[], int *tLog);
/* Fonctions de gestion du tableau */
int insererVille(VilleIUT *tiut[], char nomV[], Departement d, int *tLog, int tMax, 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 miseAJourNomDept(VilleIUT *tiut[], int tLog); void miseAJourNomDept(VilleIUT *tiut[], int tLog);
void miseAJourResp(VilleIUT *tiut[], int tLog); void miseAJourResp(VilleIUT *tiut[], int tLog);
int longueur(ListeDept lDept);
bool vide(ListeDept lDept);
ListeDept rechercherDept(ListeDept lDept, char dept[], int *trouve);
void miseAJourPlaces(VilleIUT *tiut[], int tLog); void miseAJourPlaces(VilleIUT *tiut[], int tLog);
/* Fonctions de gestion d'affichage, menus et globale */
int login(void); int login(void);
void menuAdmin(VilleIUT *tiut[], int *tLog, int tMax); void menuAdmin(VilleIUT *tiut[], int *tLog, int tMax);
void menuCandidat(VilleIUT *tiut[], int *tLog, int tMax); void menuCandidat(VilleIUT *tiut[], int *tLog, int tMax);
void clearpage(void); void clearpage(void);
void afficherPlace(Departement d);
void afficherDep(Departement d);
void afficherVille(VilleIUT v);
void afficherTIUT(VilleIUT *tiut[], int tLog);
void afficherVilleDep(VilleIUT v);
int rechercheIUT(VilleIUT *tiut[], int tLog, char ville[], int *trouve);
void globale(void); void globale(void);
Loading…
Cancel
Save