Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef STRING_H
- #include <string.h>
- #define STRING_H
- #endif
- #ifndef STDIO_H
- #include <stdio.h>
- #define STDIO_H
- #endif
- #ifndef STDLIB_H
- #include <stdlib.h>
- #define STDLIB_H
- #endif
- typedef struct nodo
- {
- int clave;
- struct nodo *hDerecho, *hIzquierdo;
- }ARBOL;
- /* Inicializar el puntero en NULL*/
- ARBOL Inicializar(int key)
- {
- ARBOL n;
- n.clave = key;
- n.hDerecho = NULL;
- n.hIzquierdo = NULL;
- return n;
- }
Add Comment
Please, Sign In to add comment