From feeeb83401200a90b3a62dfcc60b09dcb03c5c31 Mon Sep 17 00:00:00 2001 From: lolax Date: Tue, 27 Dec 2022 11:04:48 +0100 Subject: [PATCH] debut part3 --- part3.c | 4 ++++ part3.h | 37 +++++++++++++++++++++++++++++++++++++ tpart3.c | 4 ++++ 3 files changed, 45 insertions(+) create mode 100644 part3.c create mode 100644 part3.h create mode 100644 tpart3.c diff --git a/part3.c b/part3.c new file mode 100644 index 0000000..53c2fd9 --- /dev/null +++ b/part3.c @@ -0,0 +1,4 @@ +#include +#include +#include +#include"part3.h" diff --git a/part3.h b/part3.h new file mode 100644 index 0000000..55bdbf5 --- /dev/null +++ b/part3.h @@ -0,0 +1,37 @@ +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 Listchx{ + Choix chx; + struct Listchx * 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é + float noteDoss;//note après étude du dossier + int nbchx;//nombre de choix + int statut;//liste d'attente ou non + Listechx lchx; +}Candidat; + + +typedef struct Mailloncand{ + Candidat cand; + struct Mailloncand * suivcand; +}Mailloncand; + +typedef Mailloncand * Listecand; diff --git a/tpart3.c b/tpart3.c new file mode 100644 index 0000000..53c2fd9 --- /dev/null +++ b/tpart3.c @@ -0,0 +1,4 @@ +#include +#include +#include +#include"part3.h"