Guest User

Untitled

a guest
Jul 15th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. #ifndef STRING_H
  2. #include <string.h>
  3. #define STRING_H
  4. #endif
  5.  
  6. #ifndef STDIO_H
  7. #include <stdio.h>
  8. #define STDIO_H
  9. #endif
  10.  
  11. #ifndef STDLIB_H
  12. #include <stdlib.h>
  13. #define STDLIB_H
  14. #endif
  15.  
  16.  
  17. typedef struct nodo
  18. {
  19.     int clave;
  20.     struct nodo *hDerecho, *hIzquierdo;
  21.    
  22. }ARBOL;
  23.  
  24. /* Inicializar el puntero en NULL*/
  25. ARBOL Inicializar(int key)
  26. {
  27.      ARBOL n;
  28.      n.clave = key;
  29.      n.hDerecho = NULL;
  30.      n.hIzquierdo = NULL;
  31.      return n;
  32.      }
Add Comment
Please, Sign In to add comment