Commit 506c3ab8c6d2bc60db704ae846d6a338c6e2c969
1 parent
1cf4e99f
creation .h
Showing
1 changed file
with
44 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,44 @@ | @@ -0,0 +1,44 @@ | ||
1 | +#include <stdio.h> | ||
2 | +#include <stdlib.h> | ||
3 | +#include <stdbool.h> | ||
4 | +#include <string.h> | ||
5 | +#define TAILLE 27 | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | +typedef struct arbre{ | ||
10 | + char val; | ||
11 | + struct arbre *suite[TAILLE]; | ||
12 | + bool finmot; //1 si fin de mot | ||
13 | +}Arbre; | ||
14 | + | ||
15 | +typedef struct dico { | ||
16 | + Arbre *alpha[TAILLE]; | ||
17 | +}Dico; | ||
18 | + | ||
19 | + | ||
20 | +int calculcase(char c); | ||
21 | + | ||
22 | +bool est_vide(struct arbre *arbre); | ||
23 | + | ||
24 | +bool fin_de_mot(struct arbre *arbre); | ||
25 | + | ||
26 | +void ini_dico(struct dico *pt_dico); | ||
27 | + | ||
28 | +void creation_arbre(Arbre **ppt_arbre,char c); | ||
29 | + | ||
30 | +void ajout_mot(struct arbre **arbrecourant,char *mot,int i); | ||
31 | + | ||
32 | +void charger_arbre(FILE *fp, struct dico **ppt_dico); | ||
33 | + | ||
34 | + | ||
35 | +void free_arbre(struct arbre *pt_arbre); | ||
36 | + | ||
37 | +void free_dico(struct dico *pt_dico); | ||
38 | + | ||
39 | +void affiche_arbre(struct arbre *arbre); | ||
40 | + | ||
41 | +void affiche_dico(struct dico *dico); | ||
42 | + | ||
43 | + | ||
44 | + |