From 85fbaa4d9381e435be129aa7bc4ea6a472acb2b2 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sun, 5 Oct 2025 16:28:33 +0200 Subject: Cours du 29 au 3 octobre --- .../tme/tme3-5/exo1/biblioLC.h" | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 "semestre 3/structures des donn\303\251es/tme/tme3-5/exo1/biblioLC.h" (limited to 'semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h') diff --git "a/semestre 3/structures des donn\303\251es/tme/tme3-5/exo1/biblioLC.h" "b/semestre 3/structures des donn\303\251es/tme/tme3-5/exo1/biblioLC.h" new file mode 100644 index 0000000..4db05fe --- /dev/null +++ "b/semestre 3/structures des donn\303\251es/tme/tme3-5/exo1/biblioLC.h" @@ -0,0 +1,41 @@ +#ifndef BIBLIO_LC_H + +typedef struct livre{ + int num; + char* titre; + char* auteur; + struct livre* next; +} Livre; + +typedef struct biblio{ + Livre* L; +} Biblio; + +Livre* creer_livre(int num,char* titre,char* auteur); + +void liberer_livre(Livre* l); + +Biblio* creer_biblio(); + +void liberer_biblio(Biblio* b); + +void inserer_en_tete(Biblio* b,int num,char* titre,char* auteur); + +Biblio* rechercher_doublons(Biblio* bib); + +void afficher_livre(Livre* l); + +void afficher_biblio(Biblio* b); + +Livre* rechercher_biblio_num(Biblio* bib, int num); + +Livre* rechercher_biblio_titre(Biblio* bib, char* titre); + +Biblio* rechercher_biblio_auteur(Biblio* bib, char* auteur); + +void suppression_livre(Biblio* bib, int num, char* titre, char* auteur); + +Biblio* rechercher_doublons(Biblio* bib); + +#endif // BIBLIO_LC_H + -- cgit v1.2.3