int main (int argc, char *argv[])
{
- BTree *tree;
- ClaveFija c(5);
+ 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;
}