1 #include "../src/hashtable.h"
2 #include "../src/persona.h"
8 HashTable< Persona* > hash(20);
9 hash["luca"] = new Persona("luca", Persona::M, 20);
10 hash["alb"] = new Persona("albertito", Persona::M, 20);
11 hash["eze"] = new Persona("eze", Persona::M, 20);
12 std::cout << (*hash["luca"]) << "\n";
13 std::cout << (*hash["alb"]) << "\n";
14 std::cout << (*hash["eze"]) << "\n";
15 std::cout << hash["no_existo"] << "\n";
18 hash.get("menos_existo");
20 catch (std::exception& e)
22 std::cerr << e.what() << "\n";