aboutsummaryrefslogtreecommitdiff
path: root/semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-05 16:28:33 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-05 16:28:33 +0200
commit85fbaa4d9381e435be129aa7bc4ea6a472acb2b2 (patch)
treea5d0149a7e70ec1ec24edd2fc0a6c2971e94130a /semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h
parent4c4b68ac62514cad87e023b877571d1952588d4e (diff)
Cours du 29 au 3 octobre
Diffstat (limited to 'semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h')
-rw-r--r--semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h b/semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h
new file mode 100644
index 0000000..4db05fe
--- /dev/null
+++ b/semestre 3/structures des données/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
+