int Stack::pop() { if(top < 0) { cout << "Stack Underflow"; return 0; } else { int d = a[top--]; return d; } } void Stack::isEmpty() { if(top < 0) { cout << "Stack is empty";