|
|
|
@ -110,7 +110,7 @@ void displayClientList(int clientID[], float cagnotte[], int suspended[], int is
|
|
|
|
|
* @param tlog_basket: taille logique du panier
|
|
|
|
|
* @return Rien
|
|
|
|
|
*/
|
|
|
|
|
void display_basket(int basket_tab_ref[], int basket_qte[], float weight[], float volume[], float unitPrice[], float *cagnotte, int tlog, int tlog_basket)
|
|
|
|
|
void display_basket(int basket_tab_ref[], int basket_qte[], float weight[], float volume[], float unitPrice[], int tlog, int tlog_basket)
|
|
|
|
|
{
|
|
|
|
|
float total_weight_line[tlog_basket], total_volume_line[tlog_basket], total_price_line[tlog_basket], cagnotte_line[tlog_basket], total_weight, total_volume, total_price;
|
|
|
|
|
int i;
|
|
|
|
@ -133,7 +133,6 @@ void display_basket(int basket_tab_ref[], int basket_qte[], float weight[], floa
|
|
|
|
|
printf("%d\t%d\t%f\t%f\t%f\t%f\t%f\t%f\t%f\n", basket_tab_ref[i], basket_qte[i], weight[i], volume[i], unitPrice[i], total_weight_line[i], total_volume_line[i], total_price_line[i],cagnotte_line[i]);
|
|
|
|
|
|
|
|
|
|
printf("\t\t\t\t\tPrix total à payer: %f\t euros\n", total_price);
|
|
|
|
|
printf("\t\t\t\t\tCagnotte totale: %f\t euros\n", *cagnotte);
|
|
|
|
|
|
|
|
|
|
//constraintExceeded( weightConstraint, volumeConstraint, *priceConstraint, *cagnotte, tabWeight[], tabVolume[], tabPrice[], tabItemRef[], tabBasketRef[], tabBasketQuantity[], tlogItem, int tlogBasket)
|
|
|
|
|
|
|
|
|
|