Advertisement
SilLAwNeD

nf16 tp3 tp3.h

Nov 14th, 2018
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.00 KB | None | 0 0
  1. // Structures
  2. typedef struct Note {
  3.     float note;
  4.     char* matiere;
  5.     struct Note* note_suiv;
  6. } T_Note;
  7.  
  8. typedef T_Note* T_ListeNotes;
  9.  
  10. typedef struct Etudiant {
  11.     int id;
  12.     char* prenom;
  13.     char* nom;
  14.     T_ListeNotes notes;
  15.     int nbNotes;
  16.     float moyenne;
  17.     struct Etudiant* etu_suiv;
  18. } T_Etudiant;
  19.  
  20. typedef T_Etudiant* T_ListeEtu;
  21.  
  22. // Prototypes
  23. T_Note *creerNote(float note, char *matiere);
  24. T_Etudiant *creerEtudiant(int idEtu, char *nom, char *prenom);
  25. T_ListeNotes ajouterNote(float note, char *matiere, T_ListeNotes listeNotes);
  26. T_ListeEtu ajouterNoteEtu(float note, char *matiere, int idEtu, T_ListeEtu listeEtu);
  27. T_ListeEtu supprimerNoteEtu(char *matiere, int idEtu, T_ListeEtu listeEtu);
  28. void afficherListeEtu(T_ListeEtu listeEtu);
  29. void afficherClassement(T_ListeEtu listeEtu);
  30. void afficherSousListes(T_ListeEtu listeEtu, char *matiere);
  31. void afficherMenu();
  32. void afficherNotes(T_ListeNotes);
  33. void afficherListeTrier(T_ListeEtu);
  34. void afficherEtu(T_ListeEtu);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement