better code

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

BIN
app

Binary file not shown.

@ -155,9 +155,9 @@ void affiche_recap_panier(int tPanier[], int tLogPanier, int tRef[], float tPoid
reference, quantite, poidsArticle, volumeArticle,
prixArticle, poidsArticle * quantite, volumeArticle * quantite, prixArticle * quantite);
poidsTotal += poidsArticle * quantite;
volumeTotal += volumeArticle * quantite;
montantTotal += prixArticle * quantite;
poidsTotal += poidsArticle * (float)quantite;
volumeTotal += volumeArticle * (float)quantite;
montantTotal += prixArticle * (float)quantite;
if (poidsTotal > chargeMaximale) {
float depassement = poidsTotal - chargeMaximale;

Loading…
Cancel
Save