MODIF ajout affichage pour test P2

master
Matheo THIERRY 2 years ago
parent 445ec7868b
commit ced6e6266b

@ -133,17 +133,27 @@ void affichage(Listchoixdept c){
affichage(c->suivant);
}
}
void affichageetu(listetuinfo a){
printf("%d\n%s %s\n", a.numeroetu, a.nometu, a.prenometu);
printf("mathématique : %d\n", a.notes[0]);
printf("français : %d\n", a.notes[1]);
printf("anglais : %d\n", a.notes[2]);
printf("matière spé : %d\n", a.notes[3]);
}
void test1(void){
listetuinfo *tetu[5000];
listchoix lc;
int j,i, nb;
char nomFich[31];
strcpy(nomFich, "candidature.txt");
nb = chargeretudiant(nomFich, tetu);
for(j=0; j<nb; j++){
affichageetu(tetu[j]);
for(i=0; i<tetu[j]->nbchoix; i++){
printf("carte %d={", i+1);
affichage(tetu[j].lchoixdept);
lc = tetu[j]->lchoixdept;
affichage(lc);
}
}
}

Loading…
Cancel
Save