diff --git a/GestionAdherents.c b/GestionAdherents.c index e379c7e..b48b2a8 100644 --- a/GestionAdherents.c +++ b/GestionAdherents.c @@ -114,7 +114,7 @@ int SupprimerAdherent(int tNoCarte[], int tAge[], int tPointsCarte[], int tCarte int pas, i, noCarte, trouve; printf("Entrez le numéro de la carte de l'adhérent recherché : "); scanf("%d", &noCarte); - pas = RechercheAdherent(tNoCarte, nbElem, &trouve); + pas = RechercheAdherent(tNoCarte, nbElem, noCarte, &trouve); if (trouve == 1) { for (i = pas; i < nbElem - 1 ; i++) @@ -151,7 +151,7 @@ void ModificationActivationCarte(int tNoCarte[], int tCarteActive[], int nbElem) int noCarte, trouve, pas, choix, choixRaison; printf("Entrez le numéro de la carte de l'adhérent recherché : "); scanf("%d", &noCarte); - pas = RechercheAdherent(tNoCarte, nbElem, &trouve); + pas = RechercheAdherent(tNoCarte, nbElem, noCarte, &trouve); if (trouve == 1) { printf("\nQue voulez-vous faire ?\n1.\tActiver la carte\n2.\tDésactiver la carte\n"); diff --git a/GestionPoints.c b/GestionPoints.c index 7e83b3c..6612a33 100644 --- a/GestionPoints.c +++ b/GestionPoints.c @@ -55,11 +55,6 @@ void AjoutPoints(int tNoCarte[], int tPointsCarte[], int tCarteActive[], int nbE pas = RechercheAdherent(tNoCarte, nbElem, noCarte, &trouve); if (trouve == 1) { - if (tCarteActive[pas] == 0) - { - printf("La carte est désactivée. Achat de points impossible."); - return; - } printf("Entrez le nombre de points à ajouter : "); scanf("%d", &pointsCarte); while (err == 1) diff --git a/exe b/exe index 2b4af56..b7cf626 100755 Binary files a/exe and b/exe differ diff --git a/membres.don b/membres.don index 2657045..dda50dd 100644 --- a/membres.don +++ b/membres.don @@ -7,3 +7,4 @@ 7 36 1 1 8 19 2 1 9 21 1 1 +10 26 16 1