saé_1.02
struct.h
Go to the documentation of this file.
1 
7 typedef struct Maillondemande{
8  char nom[31];
9  int numc,
10  desdp,
11  valcan;
12  struct Maillondemande *prec;
13 } demande;
14 
15 typedef struct MaillonDept{
16  char nom[31];
17  int nbp;
18  char resp[31];
19  struct MaillonDept *suiv;
20  demande *dem;
22 
23 typedef struct {
24  char ville[31];
25  ListeDept ldept;
26 } VilleIUT;
27 
28 typedef struct MaillonChoix{
29  char ville[31],
30  dep[31];
31  int desdp,
32  valcan;
33  struct MaillonChoix *suiv;
35 
36 typedef struct {
37  int numc;
38  char nom[31];
39  char prenom[31];
40  float note[4];
41  int nbchoix;
42  ListeChoix lchoix;
43 } Candidat;
44 
45 
46 
47 
48 ListeDept ajouter_departement(ListeDept ldept,char nom[31], int nbp, char resp[31]);
49 ListeDept ajouter_departement_en_tete(ListeDept ldept,char nom[31], int nbp, char resp[31]);
50 ListeDept supprimer_departement(ListeDept ldept,char nom[31]);
52 VilleIUT** ajouter_ville(VilleIUT *tiut[], int *tl, char nom[31], int pos);
53 VilleIUT** decalage_a_droite(VilleIUT** tiut, int pos, int tl);
54 int recherche_ville(VilleIUT **tiut,char ville[31],int *trouve, int tl);
55 void maillon_cpy(maillonDept *a, maillonDept *b);
56 void affiche_villes(VilleIUT *tiut[], int tl);
58 int nb_place_departement(maillonDept *m, char dep[31]);
59 int departement_in_ville(maillonDept *m, char dep[31]);
62 void affiche_demande(demande *m);
65 Candidat** ajouter_candidat(Candidat *tc[], int *tl, int numc, float note[4], char nom[31], char prenom[31], int nbchoix,int pos);
66 Candidat** decalage_a_droite_candidat(Candidat** tc, int pos, int tl);
67 int recherche_candidat(Candidat **tc, int numc,int tl, int *trouve);
68 ListeChoix ajouter_choix(ListeChoix lchoix,char ville[31], char dep[31], int desdp, int valcan);
69 ListeChoix ajouter_choix_en_tete(ListeChoix lchoix,char ville[31],char dep[31], int desdp, int valcan);
70 void affiche_tout_candidat(Candidat** tc, int tlc);
71 void affiche_un_candidat(Candidat** tc, int tlc);
72 void affiche_candidat_departement(VilleIUT *tiut[], int tl);
73 void affiche_candidat_departement_ldept(ListeDept ldept,char dep[31]);
74 void ajouter_demande_ldept(ListeDept ldept,char dep[31], char nom[31], int numc, int desdp, int valcan);
75 demande* ajouter_demande(demande *dem, char nom[31], int numc, int desdp, int valcan);
76 demande* ajouter_demande_en_tete(demande *dem, char nom[31], int numc, int desdp, int valcan);
77 void affiche_les_voeux(Candidat** tc, int tlc);
78 void ajouter_un_voeux(VilleIUT *tiut[], int tl, Candidat** tc, int tlc);
79 void supprimer_un_voeux(VilleIUT *tiut[], int tl, Candidat** tc, int tlc);
80 int demande_existe(ListeChoix l, char ville[31], char dep[31]);
81 void supprimer_demande_ldept(ListeDept ldept,char dep[31], char nom[31]);
82 demande* supprimer_demande(demande *dem, char nom[31]);
85 ListeChoix supprimer_choix(ListeChoix lchoix,char ville[31], char dep[31]);
void ajouter_un_voeux(VilleIUT *tiut[], int tl, Candidat **tc, int tlc)
permet à un candidat de postuler dans un département
Definition: function.c:317
demande * supprimer_demande(demande *dem, char nom[31])
supprime une demande d'une liste chainé de type demande
Definition: struct.c:495
demande * ajouter_demande(demande *dem, char nom[31], int numc, int desdp, int valcan)
ajoute une demande dans une liste chainé de type demande*
Definition: struct.c:480
ListeDept supprimer_departement_en_tete(ListeDept ldept)
supprime un département en tête de liste chainé
Definition: struct.c:124
int departement_in_ville(maillonDept *m, char dep[31])
permet de savoir si un département existe dans un ville
Definition: struct.c:92
demande * supprimer_demande_en_tete(demande *dem)
supprime la demande en tête d'une liste chainé de type demande
Definition: struct.c:536
void affiche_les_voeux(Candidat **tc, int tlc)
affiche tout les voeux d'un certain candidat
Definition: function.c:286
ListeDept fil_nouv_ldept(void)
initialise une liste chainé de département vide
Definition: struct.c:15
void affiche_candidat_departement_ldept(ListeDept ldept, char dep[31])
permet d'afficher d'une manière récursive tout les étudiants
Definition: struct.c:410
void supprimer_un_voeux(VilleIUT *tiut[], int tl, Candidat **tc, int tlc)
permet à un candidat d'annuler ça candidature dans un département
Definition: function.c:373
void affiche_un_candidat(Candidat **tc, int tlc)
affiche toutes les informations d'un certain candidat (nom,prenom,note,nombre de voeux et les voeux e...
Definition: function.c:228
void affiche_villes(VilleIUT *tiut[], int tl)
affiche toutes les villes possédant un IUT
Definition: function.c:19
int demande_existe(ListeChoix l, char ville[31], char dep[31])
vérifie si une demande existe dans une liste chainé de type ListeChoix
Definition: struct.c:550
void affiche_tout_candidat(Candidat **tc, int tlc)
affiche d'une manière itérative tout les étudiants
Definition: struct.c:394
int nb_place_departement(maillonDept *m, char dep[31])
retourn le nombre de place disponible dans un département
Definition: struct.c:79
void affiche_candidat_departement(VilleIUT *tiut[], int tl)
affiche tout les candidats ayant postulé dans un département
Definition: function.c:259
Candidat ** ajouter_candidat(Candidat *tc[], int *tl, int numc, float note[4], char nom[31], char prenom[31], int nbchoix, int pos)
ajoute un candidat dans le tableau tc
Definition: struct.c:269
int recherche_candidat(Candidat **tc, int numc, int tl, int *trouve)
retourne la position réel ou d'insertion d'un candidat dans tc tout en présisant si ce candidat exist...
Definition: struct.c:299
void affiche_ListeDept(maillonDept *m)
affiche d'une manière récursive tout les département
Definition: struct.c:216
void affiche_demande(demande *m)
affiche d'une manière récursive toutes les demandes
Definition: struct.c:228
ListeChoix ajouter_choix(ListeChoix lchoix, char ville[31], char dep[31], int desdp, int valcan)
ajoute un choix dans la liste chainé de type maillonChoix
Definition: struct.c:321
int recherche_ville(VilleIUT **tiut, char ville[31], int *trouve, int tl)
recherche une ville dans tiut et retourne ça possition (réel ou d'insertion) en plus de présisez si e...
Definition: struct.c:198
ListeDept ajouter_departement(ListeDept ldept, char nom[31], int nbp, char resp[31])
ajoute un département dans un liste chainé de département ldept
Definition: struct.c:38
ListeChoix ajouter_choix_en_tete(ListeChoix lchoix, char ville[31], char dep[31], int desdp, int valcan)
ajoute un choix en tête dans la liste chainé de type maillonChoix
Definition: struct.c:364
void affiche_ListeChoix(ListeChoix m)
affiche d'une manière récursive tout les choix
Definition: struct.c:240
void ajouter_demande_ldept(ListeDept ldept, char dep[31], char nom[31], int numc, int desdp, int valcan)
permet d'afficher d'une manière récursive toutes les demandes
Definition: struct.c:437
Candidat ** decalage_a_droite_candidat(Candidat **tc, int pos, int tl)
décalle toutes les candidat dans le tableau tc à partir de la position pos passé en paramètre
Definition: struct.c:180
void supprimer_demande_ldept(ListeDept ldept, char dep[31], char nom[31])
supprime une demande d'une liste chainé de type ListeDept
Definition: struct.c:457
void affiche_candidat(Candidat c)
affiche toutes les informations d'un candidat (numéro de candidat,nom,prenom,note,...
Definition: struct.c:252
ListeDept supprimer_departement(ListeDept ldept, char nom[31])
suprime un département dans un liste chainé de département ldept
Definition: struct.c:61
ListeChoix supprimer_choix_en_tete(ListeChoix lchoix)
supprime un choix en tête dans la liste chainé de type maillonChoix
Definition: struct.c:381
demande * ajouter_demande_en_tete(demande *dem, char nom[31], int numc, int desdp, int valcan)
ajoute une demande en tête dans une liste chainé de type demande*
Definition: struct.c:512
ListeDept ajouter_departement_en_tete(ListeDept ldept, char nom[31], int nbp, char resp[31])
ajoute un département en tête de liste chainé
Definition: struct.c:107
VilleIUT ** ajouter_ville(VilleIUT *tiut[], int *tl, char nom[31], int pos)
ajoute une ville dans le tableau tiut
Definition: struct.c:140
ListeChoix fil_nouv_lchoix(void)
initialise une liste chainé de candidature vide
Definition: struct.c:25
ListeChoix supprimer_choix(ListeChoix lchoix, char ville[31], char dep[31])
supprime un choix dans la liste chainé de type maillonChoix
Definition: struct.c:346
VilleIUT ** decalage_a_droite(VilleIUT **tiut, int pos, int tl)
décalle toutes les villes dans le tableau tiut à partir de la position pos passé en paramètre
Definition: struct.c:162
Definition: struct.h:36
Definition: struct.h:28
Definition: struct.h:15
Definition: struct.h:7
Definition: struct.h:23