
#include <iostream>
#include <string>
#include "hash.h"

int
main (int argc, char *argv[])
{
  Hash<string, int> aHash (7);

  try {
    aHash.Insert ("first", 1);
    aHash.Insert ("second", 2);
    aHash.Insert ("third", 3);
  } catch (HashException& e) {
    cout << e.getMsg () << endl;
  }

  cout << aHash;

  try  {
    aHash.Lookup ("second");
    aHash.Delete ("second");
    aHash.Lookup ("fourth");
  } catch (HashException& e) {
    cout << e.getMsg () << endl;
  }

  return 0;
}



