Correction --> fichier fonctionnel

master
DahmaneYanis 2 years ago
parent 58407b1b53
commit 09f72ec37c

@ -32,12 +32,12 @@ int chargIutDon(VilleIut *tVilleIut[], int nbMax, char nomFich[])
exit(1); exit(1);
} }
strcpy(tVilleIut[i]->nom, nom); strcpy(tVilleIut[i]->nom, nom);
tVilleIut[i]->ldept = listenouv(); tVilleIut[i]->lDept = listenouv();
ajouterDept(tVilleIut[i]->ldept, nomDept, resp, nbP); ajouterDept(tVilleIut[i]->lDept, nomDept, resp, nbP);
i = i + 1; i = i + 1;
} }
if(trouve==1) if(trouve==1)
ajouterDept(tVilleIut[indice]->ldept, nomDept, resp, nbP); ajouterDept(tVilleIut[indice]->lDept, nomDept, resp, nbP);
fscanf(flot, "%s", nom); fscanf(flot, "%s", nom);
lireDep(flot, nomDept, &nbP, resp); lireDep(flot, nomDept, &nbP, resp);
} }

@ -2,6 +2,6 @@
VilleIut ajouterDepartement(VilleIut iut, char nom[30], char resp[30], int nbP) VilleIut ajouterDepartement(VilleIut iut, char nom[30], char resp[30], int nbP)
{ {
iut.ldept = ajouterDept(iut.ldept, nom, resp, nbP); iut.lDept = ajouterDept(iut.lDept, nom, resp, nbP);
return iut; return iut;
} }
Loading…
Cancel
Save