From b68e2575b18e9ca726c7fc076d3565e5f778c173 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Tue, 13 Sep 2005 17:38:03 +0000 Subject: [PATCH] Un ejemplo mas pulenta. Muere con segfault, eso indica que va bien :P --- src/main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.43.0