-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdico.h
More file actions
32 lines (23 loc) · 763 Bytes
/
dico.h
File metadata and controls
32 lines (23 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef DICO_H_INCLUDED
#define DICO_H_INCLUDED
/* -------------------------------------------------------*/
/* Primitives de gestion d’un dictionnaire */
/* -------------------------------------------------------*/
// declaration
struct Noeud {
char lettre;
int nboccurrence;
struct Noeud* fgauche;
struct Noeud* fdroite;
};
typedef struct Noeud* TArbre;
void dicoAfficher(TArbre a);
void dicoInsererMot(char mot[], TArbre *pa);
int dicoNbOcc(char mot[], TArbre a);
int dicoNbMotsDifferents(TArbre a);
int dicoNbMotsTotal(TArbre a);
void afficherMots(char *mot, TArbre a);
int piocherMot(char *motPioche);
int nombreAleatoire(int nombreMax);
/* -------------------------------------------------------*/
#endif