From f963f5540faf3e9366e27a669bf9868aeebfe2d9 Mon Sep 17 00:00:00 2001 From: "kyllian.chabanon" Date: Thu, 10 Nov 2022 01:30:30 +0100 Subject: [PATCH] Ajout de la fonction modificationEtat --- SAE.c | 12 ++++++------ SAE.h | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/SAE.c b/SAE.c index 9b670d8..5e11d16 100644 --- a/SAE.c +++ b/SAE.c @@ -494,12 +494,12 @@ void modificationEtat(int tNumCarte[], int tEtat[], int tailleLog) { if (tEtat[index] == 1) { - printf("La carte n°%d est déjà active"); + printf("La carte n°%d est déjà active", numCarte); return; } else { - printf("La carte n°%d a été activée"); + printf("La carte n°%d a été activée", numCarte); return; } } @@ -507,12 +507,12 @@ void modificationEtat(int tNumCarte[], int tEtat[], int tailleLog) { if (tEtat[index] == 0) { - printf("La carte n°%d est déjà désactivée"); + printf("La carte n°%d est déjà désactivée", numCarte); return; } else { - printf("La carte n°%d a été désactivée.") + printf("La carte n°%d a été désactivée.", numCarte) return; } } @@ -546,7 +546,7 @@ int Sauvegarde(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[ fclose(flot); } -void ModificationActivationCarte(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int nbelem) +/*void ModificationActivationCarte(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int nbelem) { int NoCarte, trouve, pas; printf("Entrez le numéro de la carte de l'adhérent recherché : "); @@ -570,7 +570,7 @@ void ModificationActivationCarte(int tNoCarte[], int tage[], int tPointsCarte[], printf("Ce numéro d'adhérant n'existe pas, veuillez réessayer\n"); return -1; } -} +}*/ void DebitActivitee(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int tNbActivitesJour[], int tDate[], int nbelem) { diff --git a/SAE.h b/SAE.h index edaf05b..4b19629 100644 --- a/SAE.h +++ b/SAE.h @@ -29,6 +29,7 @@ void testSauvegarde(void); int rechercheAdherant (int tNoCarte[], int nbelem); int AjoutAdherent(int tNoCarte[], int tage[], int tPointsCarte[], int tCarteActive[], int tmax, int nbelem); void ModificationAge(int tNoCarte[], int tage[], int nbelem); +void modificationEtat(int tNumCarte[], int tEtat[], int tailleLog); /* Fonstions de gestion des points */ void ajouterPoints(int tNumCarte[], int tPoints[], int tailleLog);