lasted buf fixed

master
yannis.doumir_fernandes 1 year ago
parent 96b5914d93
commit 4c0b5ac1c7

BIN
app

Binary file not shown.

@ -1,3 +1,3 @@
32 69.00 1 32 319.00 1
5079 600.70 0 5079 696.70 0
53 0.00 0 53 0.00 0

@ -276,11 +276,11 @@ void suppressionClient(int tNumClient[], float tCagnotte[], int tSus[], int *tLo
tSus[indexClient] = tSus[indexClient + 1]; tSus[indexClient] = tSus[indexClient + 1];
indexClient++; indexClient++;
} }
printf("\033[32mLe client %d a été supprimé avec succès.\033[0m\n", tNumClient[indexClient]); printf("\033[32mLe client %d a été supprimé avec succès.\033[0m\n", numC);
(*tLogique)--; (*tLogique)--;
return; return;
} else { } else {
printf("\t Le client %d n'a pas été supprimé.\n", tNumClient[indexClient]); printf("\t Le client %d n'a pas été supprimé.\n", numC);
return; return;
} }
@ -369,6 +369,14 @@ void creerReduc( int tRefReduc[], int tReduc[], int *tLogReduc, int tPhysiqueRed
verifInt(&ref); verifInt(&ref);
} }
int verifReducExistante = trouver_index_article(ref, tRefReduc, tLogArticle);
while ( (verifReducExistante = trouver_index_article(ref, tRefReduc, tLogArticle)) != -1 )
{
printf("\x1B[31mERREUR : Cet article est déjà en promotion ! : \x1B[0m");
verifInt(&ref);
}
printf("Entrez le pourcentage pourcentage : "); printf("Entrez le pourcentage pourcentage : ");
while (scanf("%f", &reduc) !=1 || reduc < 0 || reduc > 100) while (scanf("%f", &reduc) !=1 || reduc < 0 || reduc > 100)
{ {

Loading…
Cancel
Save