#include #include #include #include #include #include "HashUtility.h" using namespace std; int main(){ sum_of_components_hash h1; polynomial_hash h2(5); polynomial_hash h3(10); polynomial_hash h4; cyclic_hash h5; cyclic_hash h6(10); ifstream inf("boards.txt"); string line; while (getline(inf,line).good()){ cout << "sum_of_components_hash(" << line << "):\t" << h1(line) << endl; cout << "polynomial_hash(a_=5)(" << line << "):\t" << h2(line) << endl; cout << "polynomial_hash(a_=10)(" << line << "):\t" << h3(line) << endl; cout << "polynomial_hash(random a_)(" << line << "):\t" << h4(line) << endl; cout << "cyclic_hash(randome sh_)(" << line << "):\t" << h5(line) << endl; cout << "cyclic_hash(sh_=10)(" << line << "):\t" << h6(line) << endl; } inf.close(); }