The stub of
pop()
should look like this:
Item Stack::pop() { }
Because
pop()
is basically the opposite of
push
, the
pop()
method should behave as follows:
Subtract 1 from
myTop
.
Return the entry of
myArray
whose index is
myTop
.