I need a help in generating ideas to create a program using stack+queue.
Real life example of stack+queue is needed.
Pleaseeeee?

Some real life examples of stack and queue:

Imagine a person washing dirty plates in a restaurant kitchen. As the waiters clear the tables and bring in the dishes, they stack the plates on top of each other, while the person washing the dishes removes the plates from the top of the stack first. This method is known as first in last out (FILO) and is also called a stack.

Now imagine a line of people waiting to be served at a counter. The person who has been waiting the longest is served first and people arriving in the line are placed at the end of the queue. This is also known as first in first out (FIFO).

There are lots of programming applications for stacks and queues, and they are some of the most common data structures used in modern applications. I'll leave this side of it for you to come up with something ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.