#ifndef stack_h #define stack_h const int MAX = 50; struct Stack { int top; int elems[MAX]; void push(int i) { elems[top++]=i; } int pop() { return elems[--top]; } int empty() { return top == 0; } }; Stack* createStack(); #endif