From 8246af30af91d97049323e8ab24c8d053b21bbf4 Mon Sep 17 00:00:00 2001 From: "kyllian.chabanon" Date: Fri, 11 Nov 2022 00:02:29 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20de=20la=20lisibilit=C3=A9?= =?UTF-8?q?=20du=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Global.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Global.c b/Global.c index 6eb57ed..6574afb 100644 --- a/Global.c +++ b/Global.c @@ -40,47 +40,46 @@ void GestionMenus(void) { Affichage1Adherent(tNoCarte, tAge, tPointsCarte, tCarteActive, nbElem); } - if (choixA == 'B' || choixA == 'b') + else if (choixA == 'B' || choixA == 'b') { AffichageTousAdherents(tNoCarte, tAge, tPointsCarte, tCarteActive, nbElem); } - if (choixA == 'C' || choixA == 'c') + else if (choixA == 'C' || choixA == 'c') { AffichageNbEntreesTousJour(tNbActivitesJour, tDate, nbElem); } - if (choixA == 'D' || choixA == 'd') + else if (choixA == 'D' || choixA == 'd') { AffichageNbEntreesTotal(tNbActivitesJour, nbElem); } - if (choixA == 'E' || choixA == 'e') + else if (choixA == 'E' || choixA == 'e') { AffichageNbAdherents(nbElem); } choixA = ChoixMenuAffichage(); } } - if (choix == 2) + else if (choix == 2) { nbElem = AjoutAdherent(tNoCarte, tAge, tPointsCarte, tCarteActive, tMax, nbElem); } - if (choix == 3) + else if (choix == 3) { ModificationAge(tNoCarte, tAge, nbElem); } - if (choix == 4) + else if (choix == 4) { nbElem = SupprimerAdherent(tNoCarte, tAge, tPointsCarte, tCarteActive, nbElem); } - if (choix == 5) + else if (choix == 5) { - AjoutPoints(tNoCarte, tPointsCarte, tCarteActive, nbElem); } - if (choix == 6) + else if (choix == 6) { ModificationActivationCarte(tNoCarte, tCarteActive, nbElem); } - if (choix == 7) + else if (choix == 7) { DebitActivitee(tNoCarte, tCarteActive, tNbActivitesJour, nbElem); }