Antoine PEREDERII 2 years ago
commit 1eb77d10fc

@ -9,7 +9,7 @@ void Affichage1Adherent(int tNoCarte[], int tAge[], int tPointsCarte[], int tCar
if (trouve == 1)
{
printf("\nN° de carte\tAge\tPoints\tEtat\n");
printf("%d\t%d\t%d\t%d\n", tNoCarte[pas], tAge[pas], tPointsCarte[pas], tCarteActive[pas]);
printf("%d\t\t%d\t%d\t%d\n", tNoCarte[pas], tAge[pas], tPointsCarte[pas], tCarteActive[pas]);
}
else
{

@ -98,12 +98,12 @@ void ModificationActivationCarte(int tNoCarte[], int tCarteActive[], int nbElem)
if (trouve == 1)
{
printf("\nQue voulez-vous faire ?\n1.\tActiver la carte\n2.\tDésactiver la carte\n");
printf("Entrez votre choix : ");
printf("\nOption choisie :");
scanf("%d", &choix);
if (choix == 1)
{
printf("\nPourquoi voulez-vous activer la carte ?\n1.\tCarte retrouvée\n2.\tNouvelle carte\n3.\tLevée de sanction\n");
printf("Option choisie : ");
printf("\nOption choisie : ");
scanf("%d", &choixRaison);
if (tCarteActive[pas] == 1)
@ -117,7 +117,7 @@ void ModificationActivationCarte(int tNoCarte[], int tCarteActive[], int nbElem)
else if (choix == 2)
{
printf("\nPourquoi voulez-vous désactiver la carte ?\n1.\tPerte\n2.\tVol\n3.\tSanction\n");
printf("Option choisie : ");
printf("\nOption choisie : ");
scanf("%d", &choixRaison);
if (tCarteActive[pas] == 0)

@ -13,12 +13,7 @@ par exemple faire une séance de musculation suivie dune séance de SPA, sa c
22 points.
Attribution de points lors d'un sceance qui dépende de critères socioprofessionnels (retraités, étudiants, ... AGE
Creditation obligatoire lors de creation adherent
Votre application doit pouvoir interdire à un adhérent de fréquenter le centre plus dune fois par jour
*/
void GestionMenus(void)
@ -45,48 +40,52 @@ 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)
{
<<<<<<< HEAD
printf("Saisissez le numéro de la carte à créditer :");
scanf("%d", &noCarte);
AjoutPoints(tNoCarte, tPointsCarte, tCarteActive, nbElem, noCarte);
=======
AjoutPoints(tNoCarte, tPointsCarte, tCarteActive, nbElem);
>>>>>>> 8246af30af91d97049323e8ab24c8d053b21bbf4
}
if (choix == 6)
else if (choix == 6)
{
ModificationActivationCarte(tNoCarte, tCarteActive, nbElem);
}
if (choix == 7)
else if (choix == 7)
{
DebitActivitee(tNoCarte, tCarteActive, tNbActivitesJour, nbElem);
}

@ -3,7 +3,7 @@
int ChoixMenu(void)
{
int choix;
printf("\n\tMenu principal\n");
printf("\nMenu principal\n");
printf("1.\tAffichage\n");
printf("2.\tAjouter un adhérent\n");
printf("3.\tModifier l'âge d'un adhérent\n");
@ -20,7 +20,7 @@ int ChoixMenu(void)
int ChoixMenuAffichage(void)
{
char choix;
printf("\n\tMenu d'affichage\n");
printf("\nMenu d'affichage\n");
printf("A.\tAffichage des informations d'un adhérent\n");
printf("B.\tAffichage des informations de tous les adhérents\n");
printf("C.\tAffichage du nombre dentrées totales de toutes les journées\n");

Loading…
Cancel
Save