This commit is contained in:
2025-12-01 23:41:00 +01:00
parent 1c1e22b1df
commit 9bc260a750
14 changed files with 254 additions and 38 deletions

View File

@@ -2,10 +2,11 @@
DiccionarioCuacs::DiccionarioCuacs(int m) {
TablaHash th = TablaHash(m);
Arbol arbol = Arbol();
this -> tabla = th;
}
void DiccionarioCuacs::insertar(Cuac nuevo) {
Cuac *ref = tabla.insertar(nuevo);
Cuac* ref = tabla.insertar(nuevo);
arbol.insertar(ref);
}
@@ -14,6 +15,19 @@ void DiccionarioCuacs::follow(string nombre){
tabla.consultar(nombre);
}
void DiccionarioCuacs::last(int n) {
cout << "last " << n << endl;
arbol.last(n);
}
void DiccionarioCuacs::date(Fecha f1, Fecha f2) {
cout << "date ";
f1.escribir();
cout << " ";
f2.escribir();
cout << '\n';
arbol.date(f1, f2);
}
int DiccionarioCuacs::elem() {
return tabla.elem();
}