Homework/HW03/ListNode.cc
void ListNode::setDatum(const int number)
{
    if (this) // check if we even have a target object
        datum = number;
    else        
    {
        cerr << "Accessing a NULL pointer. Terminating program now." << endl;
        exit(1);
    }
}
// Set the value of the datum.
Set the value of the datum.
Set the value of the datum .
void ListNode::setDatum(const int number)
{
    if (this) 
        datum = number;
    else        
    {
        cerr << "Accessing a NULL pointer. Terminating program now." << endl;
        exit(1);
    }
}
void ListNode :: setDatum ( const int number ) { if ( this ) datum = number ; else { cerr << " " << endl ; exit ( 1 ) ; } }
Set the value of the datum.
Set the value of the datum .
// check if we even have a target object