Question: Implement a stack using STL. Your program should take the details of a Book from the user such as bookname, author etc. and store them

Implement a stack using STL. Your program should take the details of a Book from the user such as bookname, author etc. and store them in the stack one by one. Once all books have been stored in the stack, using the display function; show on the console and then remove all values from stack to then display stack is empty. class/struct Book{ string bookname;

NOTE: DO IN C++ string authorname; };

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!