#ifndef STACK_H #define STACK_H #include //for the data type size_t class stack { //Declarations for the data members: 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: //Declarations for the member functions: stack(); //constructor ~stack(); //destructor void push(int i); //Insert the int i into the stack. int pop(); //Remove the most recently inserted int from the stack }; #endif