Correction des erreurs dans le chargement des fichiers (Taille logique)

doc
Rémi LAVERGNE 1 year ago
parent 6d646a7de9
commit 0dd81c0f26

@ -57,7 +57,7 @@ int chargeArticles(int reference[], float weight[], float volume[], float unitPr
fscanf(article, "%d %f %f %f", &ref, &w, &v, &up); fscanf(article, "%d %f %f %f", &ref, &w, &v, &up);
while(!feof(article)) while(!feof(article))
{ {
if(tL < tmaxArticles) if(tL == tmaxArticles)
{ {
printf("Tableau trop petit.\n"); printf("Tableau trop petit.\n");
return tL; return tL;
@ -108,7 +108,7 @@ int chargeClients(int clientID[], float cagnotte[], int suspended[], int isAdmin
fscanf(client, "%d %f %d %d", &id, &cag, &sus, &adm); fscanf(client, "%d %f %d %d", &id, &cag, &sus, &adm);
while(!feof(client)) while(!feof(client))
{ {
if(tL < tmaxArticles) if(tL == tmaxArticles)
{ {
printf("Tableau trop petit.\n"); printf("Tableau trop petit.\n");
return tL; return tL;

Loading…
Cancel
Save