From b47e5b1518d7089a2f6fdba439cf35dcf29e6089 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sun, 19 Oct 2025 23:11:41 +0200 Subject: Cours du 13 au 17 octobre --- .../tme/tme3-5/exo2/biblioH.h" | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 "semestre 3/structures des donn\303\251es/tme/tme3-5/exo2/biblioH.h" (limited to 'semestre 3/structures des données/tme/tme3-5/exo2/biblioH.h') diff --git "a/semestre 3/structures des donn\303\251es/tme/tme3-5/exo2/biblioH.h" "b/semestre 3/structures des donn\303\251es/tme/tme3-5/exo2/biblioH.h" new file mode 100644 index 0000000..de41819 --- /dev/null +++ "b/semestre 3/structures des donn\303\251es/tme/tme3-5/exo2/biblioH.h" @@ -0,0 +1,45 @@ +#ifndef BIBLIO_H_H +#define BIBLIO_H_H + +typedef struct livreh { + int clef; + int num; + char* titre; + char* auteur; + struct livreh* next; +} LivreH; + +typedef struct table { + int nE; + int m; + LivreH** T; +} BiblioH; + +int fonctionClef(char* auteur); + +LivreH* creer_livre(int num,char* titre,char* auteur); + +void liberer_livre(LivreH* l); + +BiblioH* creer_biblio(int m); + +void liberer_biblio(BiblioH* b); + +int fonctionHachage(int cle, int m); + +void inserer(BiblioH* b,int num,char* titre,char* auteur); + +void afficher_livre(LivreH* l); + +void afficher_biblio(BiblioH* b); + +LivreH* rechercher_biblio_num(BiblioH* bib, int num); + +LivreH* rechercher_biblio_titre(BiblioH* bib, char* titre); + +BiblioH* rechercher_biblio_auteur(BiblioH* bib, char* auteur); + +void suppression_livre(BiblioH* bib, int num, char* titre, char* auteur); + +BiblioH* rechercher_doublons(BiblioH* bib); +#endif // !BIBLIO_H_H -- cgit v1.2.3