List.cpp
void List::printList( ){

    if (getElementCount()==0)
    {
        cout << "There are 0 patients in the list" << endl;
    }
    
    else
    {
    for( int i = 0; i < 10; i++)
        {
            for( int j = 0; j <elementCount[i]; j++)
            {
                cout<< elements[i][j].getCareCard() <<", "<< "Patient: "<< elements[i][j].getName() <<", "<< elements[i][j].getAddress() <<", "<< elements[i][j].getPhone() <<", "<< elements[i][j].getEmail() << endl;
        
            }
        }
    }
}
// Description: Prints all n elements stored in List in sort order and does so in O(n).
Prints all n elements stored in List in sort order and does so in O(n).
Prints all n elements stored in List in sort order and does so in O ( n ) .
void List::printList( ){
    if (getElementCount()==0)
    {
        cout << "There are 0 patients in the list" << endl;
    }
    else
    {
    for( int i = 0; i < 10; i++)
        {
            for( int j = 0; j <elementCount[i]; j++)
            {
                cout<< elements[i][j].getCareCard() <<", "<< "Patient: "<< elements[i][j].getName() <<", "<< elements[i][j].getAddress() <<", "<< elements[i][j].getPhone() <<", "<< elements[i][j].getEmail() << endl;
            }
        }
    }
}
void List :: printList ( ) { if ( getElementCount ( ) == 0 ) { cout << " " << endl ; } else { for ( int i = 0 ; i < 10 ; i ++ ) { for ( int j = 0 ; j < elementCount [ i ] ; j ++ ) { cout << elements [ i ] [ j ] . getCareCard ( ) << " " << " " << elements [ i ] [ j ] . getName ( ) << " " << elements [ i ] [ j ] . getAddress ( ) << " " << elements [ i ] [ j ] . getPhone ( ) << " " << elements [ i ] [ j ] . getEmail ( ) << endl ; } } } }
Description: Prints all n elements stored in List in sort order and does so in O(n).
Description : Prints all n elements stored in List in sort order and does so in O ( n ) .