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.
109 lines
2.2 KiB
109 lines
2.2 KiB
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <stdbool.h>
|
|
|
|
|
|
typedef struct maillon
|
|
{
|
|
char departement[30];
|
|
int nbPers;
|
|
char responsable[30];
|
|
struct maillon *suiv;
|
|
}MaillonDept;
|
|
|
|
typedef MaillonDept* ListeDept;
|
|
|
|
typedef struct
|
|
{
|
|
char ville[30];
|
|
MaillonDept *idDept;
|
|
}VilleIUT;
|
|
|
|
typedef struct maillonEtu
|
|
{
|
|
char iutCandid[30];
|
|
char departement[30];
|
|
int decisionDept;
|
|
int decisionCandid;
|
|
struct maillonEtu *suiv;
|
|
}MaillonCandid, *ListeDeptCandid;
|
|
|
|
typedef struct
|
|
{
|
|
int id;
|
|
char nom[30];
|
|
char prenom[30];
|
|
int note[4];
|
|
MaillonCandid *idCandDept;
|
|
}Candidat;
|
|
|
|
|
|
bool motdepasseVerif(void);
|
|
|
|
bool verifQuit(void);
|
|
|
|
int menuUtilisateurAffiche(void);
|
|
|
|
int menuAdminAffiche(void);
|
|
|
|
void gestionMenu(VilleIUT **tiut, int nbEle);
|
|
|
|
int gestionMenuAdmin(VilleIUT **tiut, int nbEle);
|
|
|
|
void global(void);
|
|
|
|
void AffichageVille(VilleIUT **tiut, int nbEle);
|
|
|
|
void AffichageGlobalDepVille(VilleIUT **tiut, int nbEle);
|
|
|
|
void AffichageNbplaceDept(VilleIUT **tiut, int nbEle);
|
|
|
|
int rechVille(VilleIUT **tiut, int nbEle, char code[], int *trouve);
|
|
|
|
void AffichageNbplaceDeptVille(VilleIUT **tiut, int nbEle);
|
|
|
|
void AffichageDepVille(VilleIUT **tiut, int nbEle);
|
|
|
|
void AffichageDeptVille(VilleIUT **tiut, int nbEle);
|
|
|
|
void AffichageGlobalIUT(VilleIUT **tiut, int nbEle);
|
|
|
|
void MiseAJourNbPlace(VilleIUT **tiut, int nbEle);
|
|
|
|
void creationDept(VilleIUT **tiut, int nbEle);
|
|
|
|
void suppressionDept(VilleIUT **tiut, int nbEle);
|
|
|
|
void modifChefDept(VilleIUT **tiut, int nbEle);
|
|
|
|
void triEchange(VilleIUT **tiut, int nbEle);
|
|
|
|
int plusGrand(VilleIUT **tiut, int nbEle);
|
|
|
|
void echanger(VilleIUT **tiut, int i, int j);
|
|
|
|
void clearpage(void);
|
|
|
|
ListeDept creerListeDept(void);
|
|
|
|
VilleIUT **chargementVille(char *nomFich, int tphys, int *tailleL);
|
|
|
|
VilleIUT lireVille(FILE *flot);
|
|
|
|
ListeDept traiterDept(ListeDept l, FILE *flot);
|
|
|
|
ListeDept ajouterEnTeteDept(ListeDept l, char *dept, char *nom, int nbP);
|
|
|
|
void affichageListeDept(ListeDept l);
|
|
|
|
ListeDept insererDept(ListeDept l, char *dept, char *nom, int nbP);
|
|
|
|
ListeDept supprimerEnTêteDept(ListeDept l);
|
|
|
|
ListeDept supprimerDept(ListeDept l, char *code);
|
|
|
|
bool vide(ListeDept l);
|
|
|
|
ListeDept rechercheDept(ListeDept l, char code[]);
|