Question:
For the following structure of Books in C++
Struct Book
{
int Bno;
char Bname[20];
Book *Link;
};
Given that the following declaration of class BookStack in C++ represents a dynamic stack of Books:
class BookStack
{
Book*Top; // inter with address of Topmost book of Stack
public:
BookStack()
{
Top = NULL;
}
void Push(); //Function to push a Book into the dyanmic Stack
void Pop(); Function to pop a Book from the dynamic stack
~BookStack();
};
C. Sir| Created: 8-Apr-2019 | Updated: 10-Apr-2019|CBSE12A-2019
