Advertisement
Guest User

Untitled

a guest
May 20th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #ifndef ARBUS_H
  2. #define ARBUS_H
  3. #include "C:\Users\Fede\Documents\Codeblocks\Clase Lista\include\Lista.h"
  4. using namespace std;
  5. template <typename Elem>
  6. class ArBus
  7. {
  8. public:
  9. ArBus();
  10. ~ArBus();
  11. ArBus(Elem dato);
  12. void agregar(Elem dato);
  13. bool existe(Elem dato);
  14. Elem obtener();
  15. void recorrer(Lista<Elem> & lista);
  16. unsigned int cantElem();
  17.  
  18.  
  19. private:
  20. struct nodoArbol
  21. {
  22. Elem raiz;
  23. ArBus<Elem> *izq;
  24. ArBus<Elem> *der;
  25. };
  26. nodoArbol *arbol;
  27. unsigned int cantidad;
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement