]> git.llucax.com Git - z.facultad/75.52/treemulator.git/commitdiff
Pone BTree en el stack
authorLeandro Lucarella <luca@llucax.hn.org>
Tue, 13 Sep 2005 15:00:34 +0000 (15:00 +0000)
committerLeandro Lucarella <luca@llucax.hn.org>
Tue, 13 Sep 2005 15:00:34 +0000 (15:00 +0000)
src/main.cpp

index c22dde916725dd97e9b4d4d0973387e1c9ee788d..c405fbaa5dd9eb5623c6954ec8a3dfe444f459f6 100644 (file)
@@ -5,14 +5,10 @@
 
 int main  (int argc, char *argv[])
 {
-       BTree *tree;
+       BTree tree ("test.idx", 1024);
        ClaveFija c(5);
 
-       tree = new BTree ("test.idx", 1024);
-
-       tree->AddKey (c);
-
-       delete tree;
+       tree.AddKey (c);
 
        return 0;
 }