resolved errors in client

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

BIN
app

Binary file not shown.

@ -2,6 +2,7 @@
#include <stdlib.h>
#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) {

@ -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);
Loading…
Cancel
Save