|
|
@ -103,7 +103,7 @@ listetuinfo lireEtu(FILE *fe){
|
|
|
|
int i;
|
|
|
|
int i;
|
|
|
|
listetuinfo b;
|
|
|
|
listetuinfo b;
|
|
|
|
fscanf(fe, "%d %s %s %d %d %d %d %d", &b.numeroetu, b.nometu, b.prenometu, &b.notes[0], &b.notes[1], &b.notes[2], &b.notes[3], &b.nbchoix);
|
|
|
|
fscanf(fe, "%d %s %s %d %d %d %d %d", &b.numeroetu, b.nometu, b.prenometu, &b.notes[0], &b.notes[1], &b.notes[2], &b.notes[3], &b.nbchoix);
|
|
|
|
*b.lchoixdept = lireChoix(fe, b.nbchoix);
|
|
|
|
b.lchoixdept = lireChoix(fe, b.nbchoix);
|
|
|
|
return b;
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -152,14 +152,14 @@ void test1(void){
|
|
|
|
char nomFich[20];
|
|
|
|
char nomFich[20];
|
|
|
|
strcpy( nomFich, "candidature.txt");
|
|
|
|
strcpy( nomFich, "candidature.txt");
|
|
|
|
nb = chargeretudiant(nomFich, tetu, 5000);
|
|
|
|
nb = chargeretudiant(nomFich, tetu, 5000);
|
|
|
|
/*printf("bonjour1");
|
|
|
|
printf("bonjour1");
|
|
|
|
for(j=0; j<nb; j++){
|
|
|
|
for(j=0; j<nb; j++){
|
|
|
|
affichageetu(*tetu[j]);
|
|
|
|
affichageetu(*tetu[j]);
|
|
|
|
for(i=0; i<tetu[j]->nbchoix; i++){
|
|
|
|
for(i=0; i<tetu[j]->nbchoix; i++){
|
|
|
|
printf("carte %d={", i+1);
|
|
|
|
printf("carte %d={", i+1);
|
|
|
|
affichage(*tetu[j]->lchoixdept);
|
|
|
|
affichage(*tetu[j]->lchoixdept);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|