X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/6d49476dc3816c4ba38637bc21f44693ca66af32..e642d903800bc569707379b4a7f48293077d3c99:/src/main.cpp diff --git a/src/main.cpp b/src/main.cpp index b41152b..c60cd14 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,14 +5,14 @@ int main (int argc, char *argv[]) { - BTree *tree; - ClaveFija c; + BTree tree ("test.idx", 1024); - tree = new BTree ("test.idx", 1024); + for (int i=0; i<10000; i++) { + ClaveFija c(i); - tree->AddKey (c); - - delete tree; + std::cout << "Agregando " << i << std::endl; + tree.AddKey (c); + } return 0; }