List.cpp
int List::getIndex(const Patient& newElement) {
    
    string mystring= newElement.getCareCard();
    int myinteger = static_cast<int>(mystring[0]);
    myinteger=myinteger-48;
    return myinteger;
    
}
// Private Utility Method
// Description: Computes an array index from the first digit of the CareCard number.
Private Utility Method
Description: Computes an array index from the first digit of the CareCard number.
Private Utility Method Description : Computes an array index from the first digit of the CareCard number .
int List::getIndex(const Patient& newElement) {
    string mystring= newElement.getCareCard();
    int myinteger = static_cast<int>(mystring[0]);
    myinteger=myinteger-48;
    return myinteger;
}
int List :: getIndex ( const Patient & newElement ) { string mystring = newElement . getCareCard ( ) ; int myinteger = static_cast < int > ( mystring [ 0 ] ) ; myinteger = myinteger - 48 ; return myinteger ; }
Private Utility Method
Description: Computes an array index from the first digit of the CareCard number.
Private Utility Method Description : Computes an array index from the first digit of the CareCard number .