master
antoine.perederii 2 years ago
parent 9e67bdfe9b
commit 481a1cee76

@ -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

@ -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];

BIN
exe

Binary file not shown.

@ -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

Loading…
Cancel
Save