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.

47 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(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 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 chargeResultat(VilleIUT *tiut[],int tmax);
void affichage (VilleIUT *tiut[],int n);
MaillonDept Insertion(MaillonDept *m, char *departement, int nbP,char *resp);
MaillonDept InsertionTete(MaillonDept *m, char *departement, int nbP,char *resp);