All pastes #508505 Raw Edit

Unnamed

public cpp v1 · immutable
·published 2007-05-25 01:33 UTC
rendered paste body
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;    }}