Homework Solution 2: stack.cc
// Pop a value off of the stack by deleting the element on the
// front of the list, and returning its value
cerr << "stack underflow!\n";
data_list = data_list->next;
Note: exceptions are a better way to report errors. We’ll learn about them if we have time tomorrow.