From: Ricardo Markiewicz Date: Tue, 13 Sep 2005 17:38:03 +0000 (+0000) Subject: Un ejemplo mas pulenta. X-Git-Tag: 1_0-pre1~137 X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/commitdiff_plain/b68e2575b18e9ca726c7fc076d3565e5f778c173?ds=sidebyside;hp=ea7b8df3fe6725846831da271c70d0b77eecfe55 Un ejemplo mas pulenta. Muere con segfault, eso indica que va bien :P --- diff --git a/src/main.cpp b/src/main.cpp index c405fba..c60cd14 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,9 +6,13 @@ int main (int argc, char *argv[]) { BTree tree ("test.idx", 1024); - ClaveFija c(5); - tree.AddKey (c); + for (int i=0; i<10000; i++) { + ClaveFija c(i); + + std::cout << "Agregando " << i << std::endl; + tree.AddKey (c); + } return 0; }