From 9984c00ab523c29f45c9b555d9e958cd834798c2 Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Thu, 5 Jan 2023 10:33:26 +0100 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20de=20structures.h=20contenant?= =?UTF-8?q?=20les=20structures=20des=20diff=C3=A9rentes=20parties=20de=20l?= =?UTF-8?q?a=20SAE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/structures.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/structures.h diff --git a/src/structures.h b/src/structures.h new file mode 100644 index 0000000..8da6a47 --- /dev/null +++ b/src/structures.h @@ -0,0 +1,34 @@ +#define LEN_MAX 30 + +// STRUCTURES PARTIE 1 +typedef struct MaillonDept { + char departement[LEN_MAX]; + int nbP; + char responsable[LEN_MAX]; + struct MaillonDept* suiv; +} MaillonDept; + +typedef MaillonDept* ListeDept; + +typedef struct { + char ville[LEN_MAX]; + ListeDept ldept; +} VilleIUT; + +// STRUCTURES PARTIE 2 +typedef struct { + char ville[LEN_MAX], departement[LEN_MAX]; + int decision, validation; +} Candidature; + +typedef Candidature** ListeCandidatures; + +typedef struct { + int id; + char nom[LEN_MAX], prenom[LEN_MAX]; + float moyenneMath, moyenneFrancais, moyenneAnglais, moyenneSpecialite; + int nbCandidatures; + ListeCandidatures listeCandidatures; +} Candidat; + +typedef Candidat** ListeCandidats; \ No newline at end of file