int main (int argc, char *argv[])
{
- BTree tree ("test.idx", 1024);
- ClaveFija c(5);
+ BTree tree ("test.idx", 64);
+
+ if (argc != 2) {
+ printf ("Falta parametro cantidad de elementos a agregar\n");
+ return 1;
+ }
- tree.AddKey (c);
+ for (int i=0; i<=atoi(argv[1]); i++) {
+ ClaveFija c(i);
+
+ std::cout << "Agregando " << i << std::endl;
+ tree.AddKey (c);
+ }
return 0;
}