#pragma once #include #include using namespace std; class stack { public: string items[10]; //For now, have a max capacity of 10 int numItems; //number items in stack //Default constructor stack() { numItems = 0; } //Add item x to top of stack void push(string x) { items[numItems] = x; numItems++; } //Remove and return top item from stack string pop() { numItems--; return items[numItems]; } //Determin if stack is empty bool empty() { if (numItems == 0) return true; else return false; } };