#include "stackte.h" void stackte::push(int i) { stacke::_push(); //must come before the call to ::stack::push ::stack::push(i); stackt::_push(i); } int stackte::pop() { stacke::_pop(); //must come before the call to ::stack::pop const int i = ::stack::pop(); stackt::_pop(i); //must come after the call to ::stack::pop return i; }