diff --git a/ActivitesJour.don b/ActivitesJour.don index b9d8a67..a8faba1 100644 --- a/ActivitesJour.don +++ b/ActivitesJour.don @@ -1,9 +1,9 @@ -1 500 +1 502 2 525 3 740 4 812 5 850 6 620 -7 601 +7 602 8 422 9 501 diff --git a/GestionAdherents.c b/GestionAdherents.c index 8c341dc..a9732a8 100644 --- a/GestionAdherents.c +++ b/GestionAdherents.c @@ -51,7 +51,7 @@ int AjoutAdherent(int tNoCarte[], int tAge[], int tPointsCarte[], int tCarteActi { if (j == tMax) { - printf("Tableau plein, impossible d'ajouter un adhérent.\n"); + printf("Tableau plein, impossible d'ajouter un adhérent.\n"); /* Pas besoins de le mettre dans la boucle for */ return -1; } tNoCarte[j] = tNoCarte[j - 1]; @@ -117,7 +117,7 @@ int SupprimerAdherent(int tNoCarte[], int tAge[], int tPointsCarte[], int tCarte pas = RechercheAdherent(tNoCarte, nbElem, noCarte, &trouve); if (trouve == 1) { - for (i = pas; i < nbElem; i++) + for (i = pas; i < nbElem - 1 ; i++) { tNoCarte[i] = tNoCarte[i + 1]; tAge[i] = tAge[i + 1]; diff --git a/exe b/exe new file mode 100755 index 0000000..2b4af56 Binary files /dev/null and b/exe differ diff --git a/membres.don b/membres.don index a92bc92..2657045 100644 --- a/membres.don +++ b/membres.don @@ -1,9 +1,9 @@ - 1 22 10 0 - 2 25 5 1 - 3 47 7 1 - 4 38 8 1 - 5 18 8 1 - 6 46 6 1 - 7 36 6 0 - 8 19 2 1 - 9 21 1 1 +1 22 0 1 +2 25 5 1 +3 47 7 1 +4 25 0 1 +5 18 8 1 +6 46 6 1 +7 36 1 1 +8 19 2 1 +9 21 1 1