1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
/*A* Dans un premier temps, on définit une structure Etudiant1
adaptée afin de stocker les notes de chaque étudiant : */
struct enreg1{
char* nom ;
double * ListeNotes ;
};
typedef struct enreg1 info1 ;
struct etudiant1{
info1 val ;
struct etudiant1 * suiv ;
} ;
typedef struct etudiant1 Etudiant1 ;
typedef struct etudiant1* ListeEtudiant1 ;
/*Dans un deuxième temps, on définit une autre structure Etudiant2 adaptée pour
stocker la moyenne, la note la plus basse et la note la plus haute de chaque étudiant.*/
struct enreg2{
char* nom ;
double moyenne,
double notebasse ;
double notehaute ;
} ;
typedef struct enreg2 info2 ;
struct etudiant2{
info2 val ;
struct etudiant2 * suiv ;
} ;
typedef struct etudiant2 Etudiant2 ;
typedef struct etudiant2* ListeEtudiant2 ; |
Partager