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