int cprogram::cpSearch() { table t; char * returnedList[100]; int count = 0; const int hashsize = 1009; cout << "What would you like to search for?" << endl; cin.get(cpKey, 1009, '\n'); cin.ignore(); if(count = t.adtRetrieve(cpKey, cpData, returnedList)) { cout << "Search result found, displaying..." << endl; for(int i = 0; i < count; i++) { cout << returnedList[i] << endl; } return 1; } else { cout << "There was a problem finding the data (Possible typo?)" << endl; return 0; } }