Homework Solution 2: stack.cc
// Destructor: Keep popping stuff off the stack while the
// stack isn’t empty.
stack::~stack()
{
while (data_list != NULL)
pop();
}
Previous slide
Next slide
Back to first slide
View graphic version