Amélioration de la lisibilité du code

master
Kyllian CHABANON 2 years ago
parent 50f60d1121
commit 8246af30af

@ -40,47 +40,46 @@ void GestionMenus(void)
{ {
Affichage1Adherent(tNoCarte, tAge, tPointsCarte, tCarteActive, nbElem); Affichage1Adherent(tNoCarte, tAge, tPointsCarte, tCarteActive, nbElem);
} }
if (choixA == 'B' || choixA == 'b') else if (choixA == 'B' || choixA == 'b')
{ {
AffichageTousAdherents(tNoCarte, tAge, tPointsCarte, tCarteActive, nbElem); AffichageTousAdherents(tNoCarte, tAge, tPointsCarte, tCarteActive, nbElem);
} }
if (choixA == 'C' || choixA == 'c') else if (choixA == 'C' || choixA == 'c')
{ {
AffichageNbEntreesTousJour(tNbActivitesJour, tDate, nbElem); AffichageNbEntreesTousJour(tNbActivitesJour, tDate, nbElem);
} }
if (choixA == 'D' || choixA == 'd') else if (choixA == 'D' || choixA == 'd')
{ {
AffichageNbEntreesTotal(tNbActivitesJour, nbElem); AffichageNbEntreesTotal(tNbActivitesJour, nbElem);
} }
if (choixA == 'E' || choixA == 'e') else if (choixA == 'E' || choixA == 'e')
{ {
AffichageNbAdherents(nbElem); AffichageNbAdherents(nbElem);
} }
choixA = ChoixMenuAffichage(); choixA = ChoixMenuAffichage();
} }
} }
if (choix == 2) else if (choix == 2)
{ {
nbElem = AjoutAdherent(tNoCarte, tAge, tPointsCarte, tCarteActive, tMax, nbElem); nbElem = AjoutAdherent(tNoCarte, tAge, tPointsCarte, tCarteActive, tMax, nbElem);
} }
if (choix == 3) else if (choix == 3)
{ {
ModificationAge(tNoCarte, tAge, nbElem); ModificationAge(tNoCarte, tAge, nbElem);
} }
if (choix == 4) else if (choix == 4)
{ {
nbElem = SupprimerAdherent(tNoCarte, tAge, tPointsCarte, tCarteActive, nbElem); nbElem = SupprimerAdherent(tNoCarte, tAge, tPointsCarte, tCarteActive, nbElem);
} }
if (choix == 5) else if (choix == 5)
{ {
AjoutPoints(tNoCarte, tPointsCarte, tCarteActive, nbElem); AjoutPoints(tNoCarte, tPointsCarte, tCarteActive, nbElem);
} }
if (choix == 6) else if (choix == 6)
{ {
ModificationActivationCarte(tNoCarte, tCarteActive, nbElem); ModificationActivationCarte(tNoCarte, tCarteActive, nbElem);
} }
if (choix == 7) else if (choix == 7)
{ {
DebitActivitee(tNoCarte, tCarteActive, tNbActivitesJour, nbElem); DebitActivitee(tNoCarte, tCarteActive, tNbActivitesJour, nbElem);
} }

Loading…
Cancel
Save