#include #include #define stack_size 5 using namespace std; class stack { private: int i,s[10],top; public: int item; stack() { top=-1; } void push() { if(top==stack_size-1) { cout<<"stack full \n"; return; } else cout<<"Enter the data to be entered in stack= "; cin>>item; s[++top]=item; } void pop() { if(top==-1) cout<<"stack empty \n"; else cout<<"The popped out element from stack top= "<>choice; switch(choice) { case 1: ob.push(); break; case 2: ob.pop(); break; case 3: ob.display(); break; default:exit(0); } } return 0; }