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.
46 lines
1.0 KiB
46 lines
1.0 KiB
#include <stdio.h>
|
|
|
|
typedef struct liste{
|
|
char departement[30];
|
|
int nbP;
|
|
char resp[30];
|
|
struct liste *suivant;
|
|
}MaillonDept,*Maillon;
|
|
|
|
typedef struct{
|
|
char ville[30];
|
|
MaillonDept *Ville;
|
|
MaillonDept *Idept;
|
|
}VilleIUT;
|
|
|
|
//VilleIUT *tiut;
|
|
|
|
typedef enum {faux,vrai}Booleen;
|
|
|
|
//Menu utilisateur :
|
|
//void MenuUtilisateur(fdhsjklfhdsjklfhdjskl);
|
|
|
|
//Menu administrateur :
|
|
void MenuAdministrateur(VilleIUT V);
|
|
|
|
Maillon suppression(Maillon m,char *departement,char *responsable);
|
|
Maillon suppressionTete(Maillon m);
|
|
void afficherE(Maillon m);
|
|
|
|
|
|
//recherche
|
|
//MaillonDept recherche (MaillonDept *Ville,char *departement,char *responsable);
|
|
|
|
//Liste:
|
|
VilleIUT initialiser (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 chargeResultat(VilleIUT *tiut[],int taillemax);
|
|
void affichage (VilleIUT *tiut[],int n);
|
|
|