#include <stdio.h>
#include <stdlib.h>
#include<string.h>
struct no
{
char chave[20];
struct no<em>pai;
struct no</em>esquerda;
struct no*direita;
};
typedef struct no No;
No* criar_no(char c)
{
No* novo = (No*) malloc(sizeof(No) );
novo->chave[20] = c;
novo->pai = NULL;
novo->esquerda = NULL;
novo->direita = NULL;
return novo;
}
void inserir(No<em>raiz,No</em>novo)
{
printf("%s", novo->chave);
No<em>y=NULL;
No</em>aux=y;
while(y!=NULL)
{
aux=y;
if(strcmp(y->chave,novo->chave)<0)
y=y->esquerda;
else if(y->chave, novo->chave >0)
y= y->direita;
}
if(strcmp(y->chave, novo->chave)<0)
aux->esquerda = novo;
else if(strcmp(aux->chave, novo->chave)>0)
aux->direita= novo;
}
void deletar(No<em>raiz, No</em>novo)
{
No*y=NULL;
if(strcmp(y->esquerda=NULL ||y->direita=NULL))
y=novo;
}
int main()
{
return 0;
}
