From 66811867748e4fb462c04c7c2c387936a3cdba16 Mon Sep 17 00:00:00 2001 From: Kyllian CHABANON Date: Tue, 13 Dec 2022 14:59:18 +0100 Subject: [PATCH] Ajout de choses --- Partie_1/c.c | 0 Partie_1/informationsIUT.don | 4 ++++ Partie_1/partie1.c | 31 +++++++++++++++++++++++++++++++ Partie_1/partie1.h | 24 ++++++++++++++++++++++++ Partie_1/test.c | 7 +++++++ Partie_2/c.c | 0 Partie_3/partie_3.c | 0 Partie_3/partie_3.h | 0 Partie_3/testpartie_3.c | 0 README.md | 0 SAE-Structure_de_donnees.pdf | Bin structures/structures.h | 14 ++++++++++++++ 12 files changed, 80 insertions(+) delete mode 100644 Partie_1/c.c create mode 100755 Partie_1/informationsIUT.don create mode 100755 Partie_1/partie1.c create mode 100755 Partie_1/partie1.h create mode 100755 Partie_1/test.c mode change 100644 => 100755 Partie_2/c.c mode change 100644 => 100755 Partie_3/partie_3.c mode change 100644 => 100755 Partie_3/partie_3.h mode change 100644 => 100755 Partie_3/testpartie_3.c mode change 100644 => 100755 README.md mode change 100644 => 100755 SAE-Structure_de_donnees.pdf diff --git a/Partie_1/c.c b/Partie_1/c.c deleted file mode 100644 index e69de29..0000000 diff --git a/Partie_1/informationsIUT.don b/Partie_1/informationsIUT.don new file mode 100755 index 0000000..40f5a09 --- /dev/null +++ b/Partie_1/informationsIUT.don @@ -0,0 +1,4 @@ +Grenoble Informatique 112 Dupont Jean +Clermont-Ferrand Informatique 136 Simon Carine +Aurillac Bio-Informatique 56 Ayoub Milaki +Clermont-Ferrand Biologie 120 Coralie Elebone \ No newline at end of file diff --git a/Partie_1/partie1.c b/Partie_1/partie1.c new file mode 100755 index 0000000..e5e7af9 --- /dev/null +++ b/Partie_1/partie1.c @@ -0,0 +1,31 @@ +#include "partie1.h" + +void choixMenu(void) +{ + int choix; + printf("Veuillez choisir votre menu :\n"); + printf("1 -\tMenu utilisateur"); + printf("2 -\tMenu administrateur"); + printf("\nChoix : "); + scanf("%d", &choix); + switch (choix) + { + case 1: + menuUtilisateur(); + break; + case 2: + menuAdministrateur(); + break; + default: + break; + } +} + +/* +void menuUtilisateur(void) +{ +} + +void menuAdministrateur(void) +{ +}*/ \ No newline at end of file diff --git a/Partie_1/partie1.h b/Partie_1/partie1.h new file mode 100755 index 0000000..a8b8ad1 --- /dev/null +++ b/Partie_1/partie1.h @@ -0,0 +1,24 @@ +#include +#include + +typedef struct maillonDept +{ + char departement[30]; + int nbP; + char resp[30]; + struct maillonDept *suiv; +} MaillonDept, *ListeDept; + +typedef struct +{ + char ville[30]; + ListeDept ldept; +} VilleIUT; + + + + + +void choixMenu(void); +void menuUtilisateur(void); +void menuAdministrateur(void); diff --git a/Partie_1/test.c b/Partie_1/test.c new file mode 100755 index 0000000..3a7db56 --- /dev/null +++ b/Partie_1/test.c @@ -0,0 +1,7 @@ +#include "partie1.h" + +int main(void) +{ + choixMenu(); + return 0; +} diff --git a/Partie_2/c.c b/Partie_2/c.c old mode 100644 new mode 100755 diff --git a/Partie_3/partie_3.c b/Partie_3/partie_3.c old mode 100644 new mode 100755 diff --git a/Partie_3/partie_3.h b/Partie_3/partie_3.h old mode 100644 new mode 100755 diff --git a/Partie_3/testpartie_3.c b/Partie_3/testpartie_3.c old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/SAE-Structure_de_donnees.pdf b/SAE-Structure_de_donnees.pdf old mode 100644 new mode 100755 diff --git a/structures/structures.h b/structures/structures.h index 3bda30a..9dc25dc 100644 --- a/structures/structures.h +++ b/structures/structures.h @@ -3,3 +3,17 @@ #include #include +/* Partie 1 */ +typedef struct maillonDept +{ + char departement[30]; + int nbP; + char resp[30]; + struct maillonDept *suiv; +} MaillonDept, *ListeDept; + +typedef struct +{ + char ville[30]; + ListeDept ldept; +} VilleIUT; \ No newline at end of file