resolved errors

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

BIN
app

Binary file not shown.

@ -171,4 +171,3 @@ void affiche_recap_panier(int panier[], int taillePanier, int references[], floa
printf("Volume utilise : %.2f litres\n", volumeTotal); printf("Volume utilise : %.2f litres\n", volumeTotal);
printf("Charge Actuelle: %.2f kg\n", poidsTotal); printf("Charge Actuelle: %.2f kg\n", poidsTotal);
} }

@ -2,6 +2,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "interface_resp.h" #include "interface_resp.h"
#include "app/core_logic/responsable.h" #include "app/core_logic/responsable.h"
#include "app/core_logic/client.h"
#define MAX_CLIENTS 100 #define MAX_CLIENTS 100
#define MAX_ARTICLES 100 #define MAX_ARTICLES 100
@ -56,7 +57,7 @@ void affichUnArticle(int tRef[], float tPoids[], float tVol[], float tPrix[], in
{ {
int ref; int ref;
printf("\tQuelle est la référence de l'article à rechercher ?\n"); printf("\tQuelle est la référence de l'article à rechercher ?\n");
while(scanf("%d", &ref != 1 || ref <= 0)) while(scanf("%d", &ref != 1 || &ref <= 0))
{ {
printf("\tEntrez une référence valide\n"); printf("\tEntrez une référence valide\n");
while(getchar() != '\n'); while(getchar() != '\n');
@ -153,7 +154,7 @@ void affichSupprimerArticle(int *ref)
printf("\t Quel est la référence de l'article voulez-vous supprimez\n"); printf("\t Quel est la référence de l'article voulez-vous supprimez\n");
while(scanf("%d", ref == 1 || *ref <= 0)) 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'); while(getchar() != '\n');
} }
} }
@ -226,7 +227,10 @@ void global_resp(){
int tSus[MAX_CLIENTS]; int tSus[MAX_CLIENTS];
int tLogArticle = chargementArticles(tRef, tPoids, tVol, tPrix, MAX_ARTICLES); 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);
do {
menu_resp(&choix); menu_resp(&choix);
switch (choix) { switch (choix) {
@ -255,4 +259,5 @@ void global_resp(){
printf("Veuillez entrer un choix valide ! \n"); printf("Veuillez entrer un choix valide ! \n");
break; break;
} }
} while (choix != 7);
} }

@ -1,10 +1,10 @@
void affichArticles( int tRef[], float tPoids[], float tVol[], float tPrix[], int tLogique); 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 affichUnClient(int tNumClient[], float tCagnotte[], int tSus[], int tLogique);
void affichClients(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 affichAjoutArticle(int *ref, float *poids, float *volume, float *prix);
void affichSupprimerArticle(int *ref); void affichSupprimerArticle(int *ref);
void affichModifierArticle(int *ref, float *poids, float *volume, float *prix); 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 global_resp();
void affiche_resp(void); void affiche_resp(void);
Loading…
Cancel
Save