parent
9eb0d6fe52
commit
5fd12f21bb
@ -1,37 +1,75 @@
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
#include<string.h>
|
||||
#include<stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
//################ Types de structures ###############
|
||||
|
||||
typedef struct{
|
||||
typedef struct
|
||||
{
|
||||
char dept[31];
|
||||
int nbP;
|
||||
char respAd[31];
|
||||
}Departement;
|
||||
} Departement;
|
||||
|
||||
typedef struct maillonDept
|
||||
{
|
||||
Departement d;
|
||||
struct maillonDept *suiv;
|
||||
|
||||
}MaillonDept,*ListeDept;
|
||||
} MaillonDept,*ListeDept;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char nom[31];
|
||||
ListeDept lDept;
|
||||
} VilleIUT;
|
||||
|
||||
/* Fonctions de Chargement */
|
||||
|
||||
int chargement(VilleIUT *tiut[],int tMax);
|
||||
Departement lireDep(FILE *flot);
|
||||
|
||||
/* 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 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 */
|
||||
|
||||
}VilleIUT;
|
||||
|
||||
ListeDept listenouv(void);
|
||||
ListeDept InsérerEntete(ListeDept l,int nb);
|
||||
ListeDept Insérer(Liste l, int x);
|
||||
ListeDept supprimerEntete(ListeDept l);
|
||||
ListeDept supprimer(ListeDept l, int x);
|
||||
int longueur(ListeDept l);
|
||||
bool vide(ListeDept l);
|
||||
ListeDept ajouterEnqueue(ListeDept l, int x);
|
||||
int tete(ListeDept l);
|
||||
bool rechercher(ListeDept l, int x);
|
||||
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);
|
Loading…
Reference in new issue