//Syed Rais Ahmad //Assign 10 Ans 1 //Hashing #include "stdafx.h" #include #define TABSIZ 10 class Record { public: int k; char r; bool flag; Record(); }; Record::Record() { flag=false; } class Table { private: Record Rec[TABSIZ] ; int Hash(int); int ReHash(int); public: int Search(int); Insert(int,char); Print(); }; int Table::Hash(int k) { return k%(TABSIZ-1); } int Table::ReHash(int indx) { while (indx-1) { Rec[h].k=key; Rec[h].r=rec; Rec[h].flag=true; } } Table::Print() { int i=0; for(;i