From 37b55eb27c9973b894e185cfbe335a44f944511f Mon Sep 17 00:00:00 2001 From: "yann.champeau" Date: Thu, 29 Dec 2022 11:57:16 +0100 Subject: [PATCH] =?UTF-8?q?Ajustement=20des=20d=C3=A9finitions=20de=20stru?= =?UTF-8?q?ctures.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/annexe/.vscode/settings.json | 5 +++++ src/annexe/saeAnnexe.h | 14 -------------- src/partie1/saeP1.h | 6 ++++-- src/saeMain.c | 2 +- 4 files changed, 10 insertions(+), 17 deletions(-) create mode 100644 src/annexe/.vscode/settings.json diff --git a/src/annexe/.vscode/settings.json b/src/annexe/.vscode/settings.json new file mode 100644 index 0000000..30a4480 --- /dev/null +++ b/src/annexe/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "saeannexe.h": "c" + } +} \ No newline at end of file diff --git a/src/annexe/saeAnnexe.h b/src/annexe/saeAnnexe.h index 26b7369..c5a7f18 100644 --- a/src/annexe/saeAnnexe.h +++ b/src/annexe/saeAnnexe.h @@ -1,19 +1,5 @@ //Définition des structures : --------------------------// // -typedef struct MaillonDep // -{ // - char departement[31]; // - int nbp; // - char resp[51]; // - struct MaillonDep* suivant; // -}MaillonDep; // - // -typedef struct // -{ // - char Ville[31]; // - MaillonDep* ldept; // -}VilleIUT; // - // //Piles : ------------------// // typedef struct pile // // { // // diff --git a/src/partie1/saeP1.h b/src/partie1/saeP1.h index faceabd..d52d2d6 100644 --- a/src/partie1/saeP1.h +++ b/src/partie1/saeP1.h @@ -1,13 +1,15 @@ //Structure -typedef struct MaillonDep { +typedef struct MaillonDep +{ char departement[31]; int nbp; char resp[51]; struct MaillonDep* suivant; } MaillonDep; -typedef struct { +typedef struct +{ char Ville[31]; MaillonDep* ldept; } VilleIUT; diff --git a/src/saeMain.c b/src/saeMain.c index 728f64f..b28521b 100644 --- a/src/saeMain.c +++ b/src/saeMain.c @@ -1,8 +1,8 @@ #include #include #include -#include "annexe/saeAnnexe.h" #include "partie1/saeP1.h" +#include "annexe/saeAnnexe.h" #include "partie2/saeP2.h" #include "partie3/saeP3.h" #include "partie4/saeP4.h"