#ifndef STACK_H #define STACK_H #include #include class Stack { public: Stack(); std::string to_string() const; void push(std::string t); //Pushes a book to the top of the stack void pop(); //Removes first book in stack std::string top() const; //Prints the name of the top book to std::cout private: struct Book { std::string name; Book* next; }; Book* first; }; #endif