Pop
// remove data from the top of the stack
int pop()
{
top--;
if (top < 0)
{
cout << “The stack is empty”;
return 0;
}
return(stack[top]);
}
Previous slide
Next slide
Back to first slide
View graphic version