PRACTICAL PROGRAMS
ON
STACKS AND QUEUES
1. Write a menu driven program in C++ to perform insert, delete and display operation on a dynamically allocated queue containing passanger details. consider the following definition of node in the code.
struct node
{
long pno;
char pname[20];
node *next;
};
2. Write a menu driven program in C++ to perform insert, delete and display operation on a dynamically allocated stack containing book details. Consider the following definition of node in the code.
struct node
{
char book_no;
char book_titla[20];
node *next;
};
No comments:
Post a Comment