#ifndef STACK_H #define STACK_H #include //for the data type size_t class stack { static constexpr size_t n {100}; //maximum # of values that can be held int a[n]; int *sp; //The "stack pointer" points to the first currently //unused element of the array. public: stack(); //constructor void push(int i); //Insert an int into the stack. int pop(); //Remove an int (the most recently inserted one) //from the stack. }; #endif