diff --git a/app b/app index 0458afb..f19f95c 100755 Binary files a/app and b/app differ diff --git a/src/app/interface/interface_resp.c b/src/app/interface/interface_resp.c index f316d78..0b1c23d 100644 --- a/src/app/interface/interface_resp.c +++ b/src/app/interface/interface_resp.c @@ -2,6 +2,7 @@ #include #include "interface_resp.h" #include "app/core_logic/responsable.h" +#include "app/core_logic/client.h" #define MAX_CLIENTS 100 #define MAX_ARTICLES 100 @@ -153,7 +154,7 @@ void affichSupprimerArticle(int *ref) printf("\t Quel est la référence de l'article voulez-vous supprimez\n"); while(scanf("%d", ref == 1 || *ref <= 0)) { - printf("\t Veuillez entrer une référence valide.") + printf("\t Veuillez entrer une référence valide."); while(getchar() != '\n'); } } @@ -226,7 +227,7 @@ void global_resp(){ int tSus[MAX_CLIENTS]; int tLogArticle = chargementArticles(tRef, tPoids, tVol, tPrix, MAX_ARTICLES); - //int tLogClient = charger_clients(tNumClient, tCagnotte, tSus, MAX_CLIENTS); + int tLogClient = charger_clients(tNumClient, tCagnotte, tSus, MAX_CLIENTS); menu_resp(&choix); switch (choix) { diff --git a/src/app/interface/interface_resp.h b/src/app/interface/interface_resp.h index 707d010..b793ad2 100644 --- a/src/app/interface/interface_resp.h +++ b/src/app/interface/interface_resp.h @@ -1,10 +1,10 @@ void affichArticles( int tRef[], float tPoids[], float tVol[], float tPrix[], int tLogique); -void affichUnArticle(int tRef[], float tPoids[], float tVol[], float tPrix[], int tLogique, int val); +void affichUnArticle(int tRef[], float tPoids[], float tVol[], float tPrix[], int tLogique); void affichUnClient(int tNumClient[], float tCagnotte[], int tSus[], int tLogique); void affichClients(int tNumClient[], float tCagnotte[], int tSus[], int tLogique); void affichAjoutArticle(int *ref, float *poids, float *volume, float *prix); void affichSupprimerArticle(int *ref); void affichModifierArticle(int *ref, float *poids, float *volume, float *prix); -void menu_resp(int *choix, int jour); +void menu_resp(int *choix); void global_resp(); void affiche_resp(void); \ No newline at end of file