diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-19 23:11:41 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-19 23:11:41 +0200 |
| commit | b47e5b1518d7089a2f6fdba439cf35dcf29e6089 (patch) | |
| tree | bcfa88dffcff71d6a0959d2db7951cc4105f2a42 /semestre 3/structures des données/tme/tme3-5/exo2/biblioH.h | |
| parent | 4ed8060318b1807638c12b8b43660bb98fc99fba (diff) | |
Cours du 13 au 17 octobre
Diffstat (limited to 'semestre 3/structures des données/tme/tme3-5/exo2/biblioH.h')
| -rw-r--r-- | semestre 3/structures des données/tme/tme3-5/exo2/biblioH.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/semestre 3/structures des données/tme/tme3-5/exo2/biblioH.h b/semestre 3/structures des données/tme/tme3-5/exo2/biblioH.h new file mode 100644 index 0000000..de41819 --- /dev/null +++ b/semestre 3/structures des données/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 |
