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); }