List.cpp
Patient* List::search(const Patient& target){
    colindex=getIndex(target);

    for( int i = 0; i < 10; i++)
    {
        if( (elements[colindex][i]) == target)
        {
            return &(elements[colindex][i]);
            break;
        }
    }
    return NULL;
}
// Description: Search for target element.
//              Returns a pointer to the element if found,
//              otherwise, returns NULL.
Search for target element.
Returns a pointer to the element if found,
otherwise, returns NULL.
Search for target element . Returns a pointer to the element if found otherwise returns NULL .
Patient* List::search(const Patient& target){
    colindex=getIndex(target);
    for( int i = 0; i < 10; i++)
    {
        if( (elements[colindex][i]) == target)
        {
            return &(elements[colindex][i]);
            break;
        }
    }
    return NULL;
}
Patient * List :: search ( const Patient & target ) { colindex = getIndex ( target ) ; for ( int i = 0 ; i < 10 ; i ++ ) { if ( ( elements [ colindex ] [ i ] ) == target ) { return & ( elements [ colindex ] [ i ] ) ; break ; } } return NULL ; }
Description: Search for target element.
Description : Search for target element .