typedef char info;
typedef struct nodo Tree;
struct nodo {
info dado;
Tree *firstSon;
Tree *nextBrother;
};
Tree * InsertSheet(Tree * Nodo, info dado);
Tree * RemoveSheet(Tree * nodoSheet, Tree * root);
Tree * SearchWidth(Tree * root, info dado);
Tree * SearchDepth(Tree * root, info dado);
void PrintWidth(Tree * root);
void PrintDepth(Tree * root);
void destroy(Tree * root);
The function insert this correct?
Tree * InsertSheet(Tree * Nodo, info dado);
{
Tree *aux;
if(Nodo == NULL)
{
aux->dado = dado;
aux->firstSon = NULL;
aux->nextBrother = NULL;
Nodo = aux;
return Nodo;
}
aux->dado = dado;
Nodo->firstSon = aux;
return Nodo;
}
How can I build the function to remove?


Sign In
Create Account


Back to top









