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.
87 lines
1.2 KiB
87 lines
1.2 KiB
/*
|
|
programme : commun.h
|
|
auteur : Lola Chalmin, Roxane Rossetto
|
|
date : 13/12/22
|
|
finalité : SAE 1.02 Algorithme
|
|
*/
|
|
/*
|
|
Brief :
|
|
*/
|
|
#define TAILLE 100;
|
|
|
|
|
|
typedef struct {
|
|
char ville[20];//ville choisie
|
|
char dptmt[20];//département choisi
|
|
int dec;//décision du choix
|
|
int valid;//validation du candidat
|
|
}Choix;
|
|
|
|
typedef struct Liste1{
|
|
Choix chx;
|
|
struct List1 * suivchx;
|
|
}Maillonchx;
|
|
|
|
typedef Maillonchx * Listechx;
|
|
|
|
|
|
|
|
typedef struct {
|
|
int nEtu;//numéro d'étudiant
|
|
char nom[20];//nom de l'étudiant
|
|
char prenom[20];//prénom de l'étudiant
|
|
float moymat;//moyenne en maths
|
|
float moyfr;//moyenne en français
|
|
float moyen;//moyenne en anglais
|
|
float moyspe;//moyenne en spécialité
|
|
int nbchx;//nombre de choix
|
|
Choix * lchx;
|
|
}Candidat;
|
|
|
|
|
|
typedef struct Liste{
|
|
Candidat cand;
|
|
struct Liste * suivcand;
|
|
}Mailloncand;
|
|
|
|
typedef Mailloncand * Listecand;
|
|
|
|
Choix lirechx (void);
|
|
Candidat lireCandidat(void);
|
|
|
|
void AffC(Candidat c);
|
|
Candidat lireFich1Cand (FILE * fe);
|
|
void AffListeCandidat (Listecand l);
|
|
Listecand recherchenom (Listecand l, char *nom );
|
|
Listecand recherchenum (Listecand l, int num);
|
|
void test (void);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|