/*
 * Instituto Superior de Engenharia do Porto
 *
 * Estruturas de Informação
 *
 * 2000/2001
 *
 * ------------------------------------------
 *
 * Classe de Tabela de Hashing fechado para strings
 *
 * teste_hash_ab_str.cpp
 *
 */

#include <string>
#include <iostream>

#include "hashf_str.h"


void main()
{
	HashTableStrings ht;

	ht.insere("teste 1");
	ht.insere("1 etset");
	ht.insere("ana");
	ht.insere("maria");

	if (ht.pesquisa("ana"))
		cout << "encontrou 'ana'" << endl;
	else
		cout << "não existe 'ana'" << endl;

	if (ht.pesquisa("joaquina"))
		cout << "encontrou 'joaquina' << endl";
	else
		cout << "não existe 'joaquina'" << endl;

	ht.elimina("maria");

 	if (ht.pesquisa("maria"))
		cout << "encontrou 'maria'" << endl;
	else
		cout << "não existe 'maria'" << endl;

	cin.get();
}
