Advertisement
eduardovp97

tree.h

Nov 14th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #ifndef TREE_H
  2. #define TREE_H
  3.  
  4. typedef int TData;
  5.  
  6. typedef struct Node{
  7.     TData info;
  8.     struct Node *izq,*der;
  9. }TNode;
  10.  
  11. typedef struct Tree{
  12.     TNode *root;
  13. }TTree;
  14.  
  15. void crearArbol(TTree *);
  16. int insertar(TTree *, TData);
  17. void preorden(TNode*);
  18. void enorden(TNode*);
  19. void postorden(TNode*);
  20. int arbolVacio(TTree*);
  21.  
  22. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement