|
|
@ -2,20 +2,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
void displayItem(int tabReference[], float weight[], float volume[], float unitPrice[], int tlog)
|
|
|
|
void displayItem(int tabReference[], float weight[], float volume[], float unitPrice[], int tlog)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
|
|
|
|
Affichage des données d'un article choisi par sa référence sous forme:
|
|
|
|
|
|
|
|
référence poids volume prix
|
|
|
|
|
|
|
|
Avec la référence unique du produit, le poids du produit, le volume du produit et son prix à l'unité.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+param tabReference: tableau des références des articles
|
|
|
|
|
|
|
|
+param weight: tableau des poids des articles
|
|
|
|
|
|
|
|
+param volume: tableau des volumes des articles
|
|
|
|
|
|
|
|
+param unitPrice: tableau des prix à l'unité des articles
|
|
|
|
|
|
|
|
+param tlog: taille logique des tableaux des articles
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+var reference: référence de l'article recherché
|
|
|
|
|
|
|
|
+var index: index de l'article recherché dans le tableau
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
int reference, index;
|
|
|
|
int reference, index;
|
|
|
|
printf("Entrez la référence de l'article cherché: ");
|
|
|
|
printf("Entrez la référence de l'article cherché: ");
|
|
|
|
scanf("%d", &reference);
|
|
|
|
scanf("%d", &reference);
|
|
|
@ -127,7 +113,6 @@ void displayClientList(int clientID[], float cagnotte[], int suspended[], int is
|
|
|
|
* @return Rien
|
|
|
|
* @return Rien
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
void display_basket(int basket_tab_ref[], int basket_qte[], float weight[], float volume[], float unitPrice[], float *cagnotte,float weight_constraint, float volume_constraint, int tlog, int tlog_basket)
|
|
|
|
void display_basket(int basket_tab_ref[], int basket_qte[], float weight[], float volume[], float unitPrice[], float *cagnotte,float weight_constraint, float volume_constraint, int tlog, int tlog_basket)
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
float total_weight_line[], total_volume_line[], total_price_line[], cagnotte_line[], total_weight, total_volume, total_price;
|
|
|
|
float total_weight_line[], total_volume_line[], total_price_line[], cagnotte_line[], total_weight, total_volume, total_price;
|
|
|
|
int i;
|
|
|
|
int i;
|
|
|
|