#include #include class stack { private: int sp; int max; int* data; public: stack(int sz) {sp=0; max=sz; data=new int[max];} ~stack() {delete [] data;} void push(int d) {assert(sp<=max); data[sp++]=d;} void pop() {assert(0