Nombre de lignes : 33 lignes
Afficher ce fichier en plein écran
- #ifndef TREE_H_INCLUDED
- #define TREE_H_INCLUDED
-
-
-
- struct Noeud
- {
- int valeur ;
- struct Noeud* gauche ;
- struct Noeud* droit ;
- };
-
- typedef struct Noeud TNoeud; // pour éviter de traîner "struct" partout.
- typedef struct Noeud* TArbre; // définit le pointeur clairement.
-
- //**************************************************************
-
- TArbre NouvelArbreVide( void );
- void Ajouter( TArbre* arbre , int val );
- int chercher(TArbre arbre,int v);
- void Afficher1( TArbre arbre );
- void Afficher2( TArbre arbre );
- void Afficher3( TArbre arbre );
- void DrawTree_Horizonral(TArbre arbre,char type,int x,int y, int level);
-
- int NombreElements( TArbre arbre );
- int Hauteur( TArbre arbre );
- int Somme( TArbre arbre );
- int delElement(TArbre* arbre, int info);
-
-
- #endif // TREE_H_INCLUDED