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