7)Shun+Git

code
 * 1) include

class STACK {   protected: int Top; bool FULL, EMPTY; char Array [5];

public: STACK{Top=0; EMPTY=true; FULL=false;} ~STACK{} bool PUSH(char a){ if(Top<5){ Array[Top]=a; Top++; EMPTY=false; FULL=(Top==4); return true;} else { FULL=true; return false; } } char POP{ if(!EMPTY){Top--; EMPTY=(Top==-1); return Array[Top+1];} else { std::cout << "Error: Stack Empty"; return '\n';}} bool ISEMPTY{return EMPTY;} bool ISFULL{return FULL;} };

int main {   STACK test; //removal of item from empty stack std::cout << test.POP << '\n'; //pushing characters in   for(int i = 0; i < 6; i++) {       std::cout << test.PUSH('a'+i) << '\n'; }   while(!test.ISEMPTY) {       std::cout << test.POP << '\n'; }   return 0; } code