|
|
|
@ -154,9 +154,9 @@ void Chargementlistecandidat( Mailloncand *cand, char *nameFile, int *n)// fonct
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
cand = (Mailloncand *)malloc(sizeof(Mailloncand));
|
|
|
|
|
if (cand == NULL){printf("pb malloc");exit;}
|
|
|
|
|
if (cand == NULL){printf("pb malloc");exit();}
|
|
|
|
|
|
|
|
|
|
fscanf(f, " %d %s %s %.2f %.2f %.2f %.2f %d ", &cand->cand.nEtu, cand->cand.nom, cand->cand.prenom, &cand->cand.moymat, &cand->cand.moyfr, &cand->cand.moyen, &cand->cand.moyspe, &cpt);
|
|
|
|
|
fscanf(f, " %d %s %s %f %f %f %f %d ", &cand->cand.nEtu, cand->cand.nom, cand->cand.prenom, &cand->cand.moymat, &cand->cand.moyfr, &cand->cand.moyen, &cand->cand.moyspe, &cpt);
|
|
|
|
|
|
|
|
|
|
for (cpt; cpt > 0; cpt--)
|
|
|
|
|
{
|
|
|
|
@ -166,7 +166,6 @@ void Chargementlistecandidat( Mailloncand *cand, char *nameFile, int *n)// fonct
|
|
|
|
|
lireM(f, chx);//lire le maillon avec la fonction plus haut
|
|
|
|
|
chx->ldept = Insert(tmp->lchx, chx);//insert le maillon à sa bonne place
|
|
|
|
|
}
|
|
|
|
|
tV[i] = v;
|
|
|
|
|
i++;
|
|
|
|
|
}
|
|
|
|
|
return i;
|
|
|
|
|