Homework/HW02/List.cc
void List::printLast()
{
    if (tail) // check that we have a last node
        cout << "The last node in the list contains " 
             << tail->datum << endl;
    else
        cout << "The list is empty, it has no last node" << endl;
}
// Prints the last node in the list: the tail.
Prints the last node in the list: the tail.
Prints the last node in the list : the tail .
void List::printLast()
{
    if (tail) 
        cout << "The last node in the list contains " 
             << tail->datum << endl;
    else
        cout << "The list is empty, it has no last node" << endl;
}
void List :: printLast ( ) { if ( tail ) cout << " " << tail -> datum << endl ; else cout << " " << endl ; }
Prints the last node in the list: the tail.
Prints the last node in the list : the tail .
// check that we have a last node