X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/b68e2575b18e9ca726c7fc076d3565e5f778c173..a857f3426b101f330a2d7baef64b2ff1f1e39bac:/src/main.cpp diff --git a/src/main.cpp b/src/main.cpp index c60cd14..c367a4c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,9 +5,14 @@ int main (int argc, char *argv[]) { - BTree tree ("test.idx", 1024); + BTree tree ("test.idx", 64); + + if (argc != 2) { + printf ("Falta parametro cantidad de elementos a agregar\n"); + return 1; + } - for (int i=0; i<10000; i++) { + for (int i=0; i<=atoi(argv[1]); i++) { ClaveFija c(i); std::cout << "Agregando " << i << std::endl;