|
|
@ -5,26 +5,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "main.h"
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
|
|
|
|
void displayItemListDEBUG(int reference[], float weight[], float volume[], float unitPrice[], int log)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
int i;
|
|
|
|
|
|
|
|
printf("DEBUG - Affichage des articles: \n");
|
|
|
|
|
|
|
|
for (i = 0; i < log; i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
printf("Référence: %d, Poids: %f, Volume: %f, Prix unitaire: %f\n", reference[i], weight[i], volume[i], unitPrice[i]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void displayClientListDEBUG(int clientID[], float cagnotte[], int suspended[], int isAdmin[], int log)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
int i;
|
|
|
|
|
|
|
|
printf("DEBUG - Affichage des clients: \n");
|
|
|
|
|
|
|
|
for (i = 0; i < log; i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
printf("Identifiant: %d, Cagnotte: %f, Suspendu: %d, Admin: %d\n", clientID[i], cagnotte[i], suspended[i], isAdmin[i]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void debugMenu(int tabReference[], float tabWeight[], float tabVolume[], float unitPrice[], int clientID[], float cagnotte[], int suspended[], int isAdmin[], int tlogArticle, int tlogClient)
|
|
|
|
void debugMenu(int tabReference[], float tabWeight[], float tabVolume[], float unitPrice[], int clientID[], float cagnotte[], int suspended[], int isAdmin[], int tlogArticle, int tlogClient)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int choice;
|
|
|
|
int choice;
|
|
|
@ -37,10 +17,8 @@ void debugMenu(int tabReference[], float tabWeight[], float tabVolume[], float u
|
|
|
|
switch (choice)
|
|
|
|
switch (choice)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case 1:
|
|
|
|
case 1:
|
|
|
|
displayItemListDEBUG(tabReference, tabWeight, tabVolume, unitPrice, tlogArticle);
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
case 2:
|
|
|
|
displayClientListDEBUG(clientID, cagnotte, suspended, isAdmin, tlogClient);
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|