Baixe o app para aproveitar ainda mais
Prévia do material em texto
#include "biblioteca.h" typedef struct no{ int numero; struct no *esq; struct no *dir; }No; class Arvore{ private: No *Raiz; void inserir(No **pNo,int numero); void PosOrdem(No *pNo); void EmOrdem(No *pNo); int Buscar(No *pNo,int numero); int altura(No *pNo); int maior(int a, int b); void Folhas(No *pNo); void Decrescente(No *pNo); int Contar_Folhas(No *pNo); void Nivel(No *pNo, int altura , int nivel); int Remover(No **pNo, int numero); public: Arvore(); void inserir(int numero); void PosOrdem(); void EmOrdem(); int Buscar(int numero); int altura(); void Folhas(); void Decrescente(); int Contar_Folhas(); void Nivel(int nivel); int Remover(int numero); };
Compartilhar