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.

71 lines
1.8 KiB

#include <stdio.h>
/*
typedef struct {
int numero;
char nom[50];
char prenom[50];
int notes[4];
int nb_choix;
} Candidat;
// Structure pour stocker les informations sur un choix d'un candidat
typedef struct {
char ville[50];
char departement[50];
int decision;
int validation;
} Choix;
*/
typedef struct liste{
char departement[30];
int nbP;
char resp[30];
char AouD;
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[],int n);
int rechercheDept(VilleIUT *tiut[], int n);
int recherchePlaces(VilleIUT *tiut[], int n);
//Menu administrateur :
void MenuAdministrateur(VilleIUT *tiut[],int n);
ListeD suppression(ListeD ld,char *departement);
ListeD suppressionTete(ListeD ld);
ListeD Enfiler(ListeD D, char *departement, int nbP,char *resp);
ListeD ModifinbP(ListeD ld, char departement[30], int MnbP, int n);
ListeD ModifiRespon(ListeD ld, char departement[30], char respon[30], int n);
ListeD ModifiAouD(ListeD ld, char departement[30], char AouD,int n);
//recherche
//MaillonDept recherche (MaillonDept *Ville,char *departement,char *responsable);
//Liste:
VilleIUT Initialisation(void);
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, char AouD);
ListeD InsertionTete(ListeD ld, char *departement, int nbP,char *resp, char AouD);