less warning

Signed-off-by: Mathéo Hersan <matheohersan@MacBook-Pro-de-Matheo.local>
pull/13/head
Mathéo Hersan 1 year ago
parent 3aa5812bf5
commit fd70201201
No known key found for this signature in database
GPG Key ID: 4EF19C64D78EC91B

BIN
app

Binary file not shown.

@ -22,7 +22,7 @@ void affiche_client(void) {
void ajouter_article_au_panier(int numClient, int tRef[], float tPoids[], float tVol[], float tPrixUnitaire[],
int tNumClient[], float tCagnotte[], int tSus[], int tLogArticle, int tLogClient,
int tNumClient[], float tCagnotte[], int tLogArticle, int tLogClient,
float volumeCoffre, float chargeMaximale, int tPanier[], int tQuantite[], int *tLogPanier, float budget) {
int reference, quantite, articleIndex, clientIndex;
@ -308,7 +308,7 @@ void reinitialiser_panier(int tPanier[], int tQuantite[], int *tLogPanier, float
*tLogPanier = 0;
}
void deduire_cagnotte(int numClient, float montant, int tNumClient[], float tCagnotte[], int tLogClient, int tSus[]) {
void deduire_cagnotte(int numClient, float montant, int tNumClient[], float tCagnotte[], int tLogClient) {
int clientIndex = -1;
for (int i = 0; i < tLogClient; i++) {
if (tNumClient[i] == numClient) {
@ -403,7 +403,7 @@ void quitter_application(int tPanier[], int tLogPanier, int tRef[], float tPoid[
while (getchar() != '\n');
}
deduire_cagnotte(numClient, montantDeduction, tNumClient, tCagnotte, tLogClient, tSus);
deduire_cagnotte(numClient, montantDeduction, tNumClient, tCagnotte, tLogClient);
printf("Il vous reste %.2f euros dans votre cagnotte.\n", tCagnotte[clientIndex]);
}
}
@ -422,7 +422,7 @@ void quitter_application(int tPanier[], int tLogPanier, int tRef[], float tPoid[
}
while (getchar() != '\n');
deduire_cagnotte(numClient, montantDeduction, tNumClient, tCagnotte, tLogClient, tSus);
deduire_cagnotte(numClient, montantDeduction, tNumClient, tCagnotte, tLogClient);
printf("Il vous reste %.2f euros dans votre cagnotte.\n", tCagnotte[clientIndex]);
}
}
@ -462,7 +462,7 @@ void global_client(void) {
break;
case 3:
ajouter_article_au_panier(numClient, tRef, tPoids, tVol, tPrixUnitaire, tNumClient, tCagnotte,
tSus, tLogArticle, tLogClient, volumeCoffre, chargeMaximale, tPanier, tQuantite, &tLogPanier, budget);
tLogArticle, tLogClient, volumeCoffre, chargeMaximale, tPanier, tQuantite, &tLogPanier, budget);
break;
case 4:
supprimer_article_du_panier(tPanier, tQuantite, &tLogPanier, tCagnotte, numClient, tNumClient, tLogClient, tRef, tPrixUnitaire);

@ -32,7 +32,6 @@ void affiche_client(void);
* @param tPrixUnitaire - Un tableau de prix unitaires d'articles.
* @param tNumClient - Un tableau de numéros d'articles.
* @param tCagnotte - Un tableau de cagnottes.
* @param tSus - Un tableau d'articles suspendus.
* @param tLogArticle - Le nombre total d'articles disponibles.
* @param tLogClient - Le nombre total de clients.
* @param volumeCoffre - La limite de volume pour le panier du client.
@ -43,7 +42,7 @@ void affiche_client(void);
* @param budget - Le budget du client.
*/
void ajouter_article_au_panier(int numClient, int tRef[], float tPoids[], float tVol[], float tPrixUnitaire[],
int tNumClient[], float tCagnotte[], int tSus[], int tLogArticle, int tLogClient,
int tNumClient[], float tCagnotte[], int tLogArticle, int tLogClient,
float volumeCoffre, float chargeMaximale, int tPanier[], int tQuantite[], int *tLogPanier, float budget);
/**
@ -133,9 +132,8 @@ void reinitialiser_panier(int tPanier[], int tQuantite[], int *tLogPanier, float
* @param tNumClient - Un tableau de numéros de clients.
* @param tCagnotte - Un tableau de cagnottes.
* @param tLogClient - Le nombre total de clients.
* @param tSus - Un tableau d'état des clients suspendus.
*/
void deduire_cagnotte(int numClient, float montant, int tNumClient[], float tCagnotte[], int tLogClient, int tSus[]);
void deduire_cagnotte(int numClient, float montant, int tNumClient[], float tCagnotte[], int tLogClient);
/**
* @brief Quitter l'application client.

Loading…
Cancel
Save