From 3b4b82a8257d55dda18f16b1dda1abcad14ecc90 Mon Sep 17 00:00:00 2001 From: Sami GHEBRID Date: Thu, 10 Nov 2022 16:54:01 +0100 Subject: [PATCH] =?UTF-8?q?10/10,=20modification=20chargement=20activit?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fonction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fonction.c b/fonction.c index 2cb9e82..a7d43e5 100644 --- a/fonction.c +++ b/fonction.c @@ -37,7 +37,7 @@ int chargementAdherent(int tabAdherent[], int tabPoints[], int jour[], int mois[ int chargementActivite(int tabPoint[],int tabNbEntree[], int tphys) { - int num, point, nbEntree, i =0; + int num, point, i =0; FILE*flot; flot = fopen("activite.txt","r"); if (flot == NULL) { @@ -55,7 +55,7 @@ int chargementActivite(int tabPoint[],int tabNbEntree[], int tphys) return -1; } tabPoint[num] = point; - tabNbEntree[num] = nbEntree; + tabNbEntree[num] = 0; i = i + 1; fscanf(flot,"%d %d %d",&num, &point, &nbEntree); }