All pastes #449387 Raw Edit

pelucha

public text v1 · immutable
·published 2007-04-20 05:20 UTC
rendered paste body
int main()
{
	binary_tree<page> a;
	char* palabra;
	node<page> **p;
	page tmp;
	int op;
	crear_index("Spanish.txt","index.txt");
	a.crear_arbol("index.txt");
	cout<<"------ DICCIONARIO INGLES - ESPANOL ------"<<endl;
	cout<<endl;
	while(1)
	{
		cout<<"1. buscar"<<endl;
		cout<<"2. terminar"<<endl;
		cin>>op;
		if(op==1)
		{
			cout<<"ingrese una palabra"<<endl;
			cin>>palabra;
			cout<<endl;
			strcpy(tmp.key,palabra);
			tmp.position = 0;
			tmp.size = 0;
			if(a.find(tmp,p))
			{
				a.load("Spanish.txt",905,15);
			}
			else
				cout<<"no se encontro"<<endl;
		}
		if(op==2)
			break;
	}
	
	return 0;
}