0
Tree initialization error, the problem with the category variables and atributoOuDecisao
.
typedef struct node {
int categoria;
int atributoOuDecisao;
struct node *prox;
struct node *lista;
} No;
No *criaArvore(void){
No *inicio = (No*)malloc(sizeof(No));
inicio.atributoOuDecisao = NULL;
inicio.categoria = NULL;
inicio->lista = NULL;
inicio->prox = NULL;
printf ("inicio criado");
return inicio;
}
Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).
– Maniero