]> git.llucax.com Git - z.facultad/75.52/treemulator.git/blobdiff - src/main.cpp
Agrego ToRaw a las claves.
[z.facultad/75.52/treemulator.git] / src / main.cpp
index 069b3acd008a45fb0d16192768bc2a902be22550..13d7c34d11227f79fca7510115fe5ca0e145a387 100644 (file)
@@ -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 {