patch des erreurs vu lors de l'oral de SAE

master
Antoine PEREDERII 2 years ago
parent a27f3d2086
commit 75d7396fd4

@ -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");

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

BIN
exe

Binary file not shown.

@ -7,3 +7,4 @@
7 36 1 1
8 19 2 1
9 21 1 1
10 26 16 1

Loading…
Cancel
Save