int main() { int choice,h; string key; while(1) { cout<<"1.INSERT 2.SEARCH 3.MODIFY"; cout<<"enter your choice"; cin>>choice; switch(choice) { case 1:s.read(); s.pack(); break; case 2:cout<<"enter key"; cin>>key; h=s.search(key); cout<<h; break; case 3:cout<<"enter the key"; cin>>key; s.modify(key); break; } } return 0; }