X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/fd68ec89fabf4a95e4ebba38fe54041a9ad6d667..98e331147474997778f92d14b794a94f1dc3bedb:/src/main.cpp diff --git a/src/main.cpp b/src/main.cpp index 069b3ac..13d7c34 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,6 +37,11 @@ int main (int argc, char *argv[]) if (!km.Size() // si no tenemos claves agregadas, mejor que hagamos un alta || l >= paltas) { tree.AddKey (c); + try { + tree.AddKey (c); + } catch (Exception *e) { + std::cout << e->Message () << std::endl; + } km.AddValue (*it); it++; } else {