Files
quacker/tablahash.hpp
2025-12-01 23:41:00 +01:00

26 lines
426 B
C++

#pragma once
#include <list>
#include "cuac.hpp"
#include "fecha.hpp"
#include <iostream>
#include <string>
using namespace std;
class TablaHash {
private:
friend class DiccionarioCuacs;
int nElem;
int M;
list<Cuac> *lista;
public:
TablaHash();
TablaHash(int M);
~TablaHash();
Cuac* insertar(Cuac nuevo);
void consultar(string nombre);
unsigned int h(string clave);
int elem() { return nElem; }
};