@@ -0,0 +1,23 @@
#include "Stack.h"
Stack::Stack()
{
stack = new List;
}
void Stack::push(int newdata)
stack->addFirst(newdata);
int Stack::pop()
int ret = stack->returnFirst();
stack->removeFirst();
return ret;
Stack::~Stack()
delete stack;
The note is not visible to the blocked user.