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.

101 lines
2.1 KiB

/*
file: sae1-02.h
author: mathéo THIERRY
flavien BOUHAMDANI
date: 13 dec 2022
permet:
*/
/*
brief:
*/
// Partie 1
typedef struct listville {
char departement[31];
int nbplace;
char responsable[31];
struct listville* suivant;
} MaillonDept, *Listdept;
typedef struct {
char Ville[31];
int nbIUT;
Listdept ldept;
} VilleIUT;
//chargement
Listdept initialisation(void);
VilleIUT lireVille(FILE *fe);
Listdept lireDept(FILE *fe, int nbIUT);
int chargeIUT(VilleIUT* tIUT[], int taillemax);
//affichage
void affichageDep(Listdept d);
void affichageAllDep(Listdept d);
void affichageville(VilleIUT *tville[], int nbville);
void afficheVilleIUT(VilleIUT *tville[], int nbville);
void afficheDepartementsIUT(VilleIUT *tville[], int nbville);
void afficheDepNbPlace(VilleIUT *tville[], int nbville);
void afficheIUTdepParticulier(VilleIUT *tville[], int nbville);
//modif
int rechercheVille(VilleIUT *tville[], int nbville);
void modifPlace(VilleIUT *tville[], int nbville);
int chercheDepModif(Listdept d, char rechercheDep[31]);
void modifNomResponsable(VilleIUT *tville[], int nbville);
//ajout / suppressions
Listdept ajoutDept(int posOptionnel, VilleIUT *tville[], int nbville);
void ajoutIUT(VilleIUT *tIUT[], int *nbville, int taillemax);
Listdept suppressionDept(Listdept d, char rechercheDep[31]);
void supprDepartement(VilleIUT *tville[], int* nbville);
void menuP1Utilisateur(VilleIUT *v[], int nb);
void menuP1Administrateur(VilleIUT *v[], int nb);
void sauvegardeDep(Listdept d, FILE *fs);
void sauvegarde(VilleIUT *tville[], int nbville);
// Partie 2
typedef struct listchoix{
char Ville[31];
char dep[31];
int decision;
int validation;
struct listchoix* suivant;
}Maillonchoix, *Listchoixdept;
typedef struct{
int numeroetu;
char nometu[21];
char prenometu[21];
int notes[4];
int nbchoix;
Listchoixdept carte;
}listetuinfo;
// Partie 3
typedef struct listresp{
int numcand;
char Ville[31];
char dep[31];
int decision;
int validation;
}Mailloncarteresp;
// Partie 4
typedef struct listatt{
int numc;
char nom[21];
char prenom[21];
int decision;
struct listatt* suivant;
}Maillonatt;
void test1(void);