Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef ARBUS_H
- #define ARBUS_H
- #include "C:\Users\Fede\Documents\Codeblocks\Clase Lista\include\Lista.h"
- using namespace std;
- template <typename Elem>
- class ArBus
- {
- public:
- ArBus();
- ~ArBus();
- ArBus(Elem dato);
- void agregar(Elem dato);
- bool existe(Elem dato);
- Elem obtener();
- void recorrer(Lista<Elem> & lista);
- unsigned int cantElem();
- private:
- struct nodoArbol
- {
- Elem raiz;
- ArBus<Elem> *izq;
- ArBus<Elem> *der;
- };
- nodoArbol *arbol;
- unsigned int cantidad;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement