From caeeaa4313cefc866ff0c1af9c6cd4e44bf77f37 Mon Sep 17 00:00:00 2001 From: "matheo.thierry" Date: Wed, 14 Dec 2022 15:10:33 +0100 Subject: [PATCH] MODIF ajout des structures pour toutes les parties --- sae1-02.c | 53 ++++++++++++++++++++------------------------- sae1-02.h | 43 +++++++++++++++++++++++++++++++++++- untilted matcho.txt | 25 ++++++++++++++++----- 3 files changed, 85 insertions(+), 36 deletions(-) diff --git a/sae1-02.c b/sae1-02.c index 0fe6164..e296eb0 100644 --- a/sae1-02.c +++ b/sae1-02.c @@ -3,12 +3,23 @@ #include #include "sae1-02.h" +// général + +// f enregistrement + + // Partie 1 + + + + + + // Partie 2 /* - ?table - fichier text ( beaucoup de donnée a traité n(min 10 ; max ?)*nb candidat donc faire attention ) + ( beaucoup de donnée a traité n(min 10 ; max ?)*nb candidat donc faire attention ) possibilité pour le candidat pouvoir @@ -29,7 +40,6 @@ - // Partie 3 // Partie 4 @@ -37,55 +47,38 @@ // Général (menu et ce qui en ai relié) questionadmin(){ - printf("\nQuel le numéro détudiant ?\n==>"); + printf("\nQuel numéro détudiant ?\n==>"); scanf("%d%*c", &choix); printf("\n"); } int menu(void){ + +//charger + + int i=0, choix; while(i!=1){ printf("\n\tmenu\n\n"); printf("1\tutilisateur\n"); printf("2\tadmin\n"); + printf("3\tresponsable d'admission\n"); printf("\nQuel est votre choix ?\n==>"); scanf("%d%*c", &choix); printf("\n"); if(choix==1){ - } if(choix==2){ - while(i!=1){ - printf("\n\tmenu\n\n"); - printf("1\tmodification nombre de place dans un département\n"); - printf("2\tcréer un département dans un iut\n"); - printf("3\tsupp un département un iut\n"); - printf("4\tlancer ou arreterla phase de candidature d'un étudiant\n"); - printf("5\tmodifier le nom du responsable d'un département\n"); - printf("6\t\n"); - printf("\nQuel est votre choix ?\n==>"); - scanf("%d%*c", &choix); - printf("\n"); - if(choix==1){} - if(choix==2){} - if(choix==3){} - if(choix==4){} - if(choix==5){} - if(choix==6){} - if(choix<1 || choix>6){ - printf("mauvaise saisie\n"); - } - } - + } + if(choix==3){ } if(choix<1 || choix>6){ printf("mauvaise saisie\n"); } } - return 1; -} - - +//enregister + return 1; +} diff --git a/sae1-02.h b/sae1-02.h index 41ea5be..3674c83 100644 --- a/sae1-02.h +++ b/sae1-02.h @@ -8,4 +8,45 @@ /* brief: -*/ \ No newline at end of file +*/ + + +// Partie 1 +typedef struct listville{ + char departement[31]; + int nbplace; + char responsable[31]; + struct list* suivant; +}MaillonDept; + +typedef struct VilleIUT{ + char Ville[31]; + struct list* Idept; +}Maillon; + + +// Partie 2 +typedef struct listcand{ + char Ville[31]; + char dep[31]; + int decision; + int validation; +}Mailloncartecand; + + +// Partie 3 +typedef struct listresp{ + int numcand; + char Ville[31]; + char dep[31]; + int decision; + int validation; +}Mailloncarteresp; + + +// Partie 4 +typedef struct listatt{ + int numc; + struct listatt* suivant; +}maillonatt; + diff --git a/untilted matcho.txt b/untilted matcho.txt index 18abc2e..543fd56 100644 --- a/untilted matcho.txt +++ b/untilted matcho.txt @@ -38,11 +38,15 @@ livrable : - le code et la documentation (.c test.c et .h(avec explication)) - un compte rendu (expliquer partie par partie): - - -citer les fonctionnalités (avec courte explication) - -expliquer la nature et la fonction de tout ce qui est utilisé en rapport avec un fichier ou est un fichier - -expliquer tout ce qui est en rapport avec un structure de donnée et pourquoi(tableau , " pointeurs, liste, etc) - -comparez tout ce qu'on a mis en oeuvre dans la réalisation du projet + - pour chaque partie: + - structure utilisé + - les fonctionnalités mise en place + - qui fait quoi (a qui appartient la partie) + - date de fin prévue puis effective de chaque tache + - citer les fonctionnalités (avec courte explication) + - expliquer la nature et la fonction de tout ce qui est utilisé en rapport avec un fichier ou est un fichier + - expliquer tout ce qui est en rapport avec un structure de donnée et pourquoi(tableau , " pointeurs, liste, etc) + - comparez tout ce qu'on a mis en oeuvre dans la réalisation du projet noté sur : @@ -64,3 +68,14 @@ noté sur : - menu +pour chaque partie: + + - structure utilisé + - les fonctionnalités mise en place + - qui fait quoi (a qui appartient la partie) + - date de fin prévue puis effective de chaque tache + + + + +