double l = Random::Double (0.0f, 1.0f);
std::cout << l << " >= " << paltas << std::endl;
if (l >= paltas) {
- tree->AddKey (c);
+ try {
+ tree->AddKey (c);
+ } catch (Exception *e) {
+ std::cout << "====== " << (std::string)c << e->Message () << std::endl;
+ }
i++;
} else {
/* Tengo que borrar una clave entre 0 e "i" de la lista
while (it != lst.end ()) {
ClaveVariable c(*it);
- tree->AddKey (c);
+ try {
+ tree->AddKey (c);
+ } catch (Exception *e) {
+ std::cout << "====== " << (std::string)c << e->Message () << std::endl;
+ }
it++;
}
}