-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharbre.h
More file actions
29 lines (23 loc) · 735 Bytes
/
arbre.h
File metadata and controls
29 lines (23 loc) · 735 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
#ifndef ARBRE_H_INCLUDED
#define ARBRE_H_INCLUDED
// declaration
struct Noeud {
char lettre;
int nboccurrence;
struct Noeud* fgauche;
struct Noeud* fdroite;
};
typedef struct Noeud* TArbre;
/* -------------------------------------------------------*/
/* Primitives de gestion des arbres */
/* -------------------------------------------------------*/
TArbre arbreConsVide(void);
int arbreEstVide(TArbre a);
TArbre arbreCons(char c, int n, TArbre fg, TArbre fd);
char arbreRacineLettre(TArbre a);
int arbreRacineNbOcc(TArbre a);
TArbre arbreFilsGauche(TArbre a);
TArbre arbreFilsDroit(TArbre a);
void arbreSuppr(TArbre a);
/* -------------------------------------------------------*/
#endif