Blame view

SD/TP6_Hachage/abr.h 476 Bytes
5be5d85e   Vincent Benoist   tp processus
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
  #if ! defined (ABR_H)
  #define ABR_H 1
  
  
  #include <stdbool.h>
  
  struct abr {
      struct abr* gauche; 
      int valeur;
      struct abr* droit;
  };
  
  #define NIL (struct abr*)0
  
  
  extern struct abr* ajout_abr_rec (int, struct abr*);
  
  /* Calcule la hauteur d'un abr*/
  extern int hauteur_abr( struct abr*);
  
  extern bool recherche_abr_rec (int, struct abr*);
  
  extern void imprime_abr (struct abr*);
  
  extern void imprime_abrV2 (struct abr*);
  
  extern void clear_abr (struct abr*);
  
  #endif