area.add (canvas);
hbox.pack_start (area);
- hbox.pack_end (frame, true, true, 10);
+ hbox.pack_start (frame, false, false, 10);
+ frame.set_size_request (200, 200);
Glib::RefPtr<Gtk::ActionGroup> actiongroup = Gtk::ActionGroup::create();
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++;
}
}