You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
#include <stdio.h>
|
|
|
|
/**/
|
|
|
|
typedef struct liste{
|
|
char departement[30];
|
|
int nbP;
|
|
char resp[30];
|
|
struct liste *suivant;
|
|
}MaillonDept, *ListeD;
|
|
|
|
typedef struct{
|
|
char ville[30];
|
|
ListeD ldept;
|
|
}VilleIUT;
|
|
|
|
|
|
typedef enum {faux,vrai}Booleen;
|
|
|
|
//Menu utilisateur :
|
|
void MenuUtilisateur(VilleIUT *tiut[],int n);
|
|
int rechercheIUT(VilleIUT *tiut[]);
|
|
//Menu administrateur :
|
|
|
|
void MenuAdministrateur(VilleIUT *tiut[],int n);
|
|
|
|
ListeD suppression(ListeD ld,char *departement,char *responsable);
|
|
ListeD suppressionTete(ListeD ld);
|
|
|
|
|
|
|
|
//recherche
|
|
//MaillonDept recherche (MaillonDept *Ville,char *departement,char *responsable);
|
|
|
|
//Liste:
|
|
VilleIUT Initialisation(void);
|
|
VilleIUT Enfiler(VilleIUT V, char *departement, int nbP,char *resp);
|
|
Booleen testVide(VilleIUT V);
|
|
void afficher (VilleIUT V);
|
|
VilleIUT defiler(VilleIUT V);
|
|
VilleIUT lireVille(FILE *fe, int *nbDep);
|
|
MaillonDept lireDep(FILE *fe);
|
|
int chargement(VilleIUT *tiut[],int tmax);
|
|
void affichage (VilleIUT *tiut[],int n);
|
|
void affichageListe(ListeD ld);
|
|
|
|
ListeD Insertion(ListeD ld, char *departement, int nbP,char *resp);
|
|
ListeD InsertionTete(ListeD ld, char *departement, int nbP,char *resp);
|