9)Yiliang

code using namespace std;
 * 1) include

class stack { protected: int top; char array[5]; bool full, empty;

public: stack{top=0;}; ~stack{};

bool push{ if(top<6){ char a;                 cout<<"ENTER it"<>a; array[top]=a; top++; cout<<"OK"<-1){ top--; array[top] = ' ';

cout<<"OK"<=5){ return 1; }

}

void display{ int i;

for(i=0;i<6;i++){ cout<>in;

if (in=='c'){ if(one.ISEMPTY==1){ cout<<"EMPTY"<<endl; }                           else{ one.display; cout<<endl; }                        }      else if (in=='a'){ one.push; }

else if (in=='b'){ if(one.ISEMPTY==1){ cout<<"EMPTY"<<endl<<endl; }                            else{ one.pop; cout<<endl; }

}

}

system("pause"); }

code