#include #include #include #include using namespace std; class Stack{ int *p; int index=-1; public: Stack(){ p = new int [10]; } Stack &operator>(int &k){ //pop k=this->p[index]; this->index--; } bool operator!(){ if(this->index==-1) return true; else return false; } }; int main() { Stack stack; stack