|
|
@ -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;
|
|
|
|