Tuesday, April 19, 2016

Stack and Queue

On request i have created a project called Stack and Queue in which the following classes are defined.

button
stack
queue

There are four buttons at the bottom named "Push" "Pop" "Insert" and "Delete" which are used to push and pop from the stack and insert and delete from the queue.

Here is a snapshot:


Here is the source. Remember it is a C++ project and you have to save the file as .cpp. This is a very easy project to understand as you would have studied the working of stack and queue in your data structure classes.

4 comments:

  1. sir please mail the code for stack and queues implementation to creativestars13@gmail.com

    ReplyDelete
    Replies
    1. Plz click on source above and download after logging into your gmail account.

      Delete
  2. Sir, snprintf is displaying an error that says "undeclared identifier", would you plz tell me a substitute for it or how to debug it. .???

    ReplyDelete
  3. Sir it is not showing stack full and queue full...Which function I have to use..Pls gv me solution

    ReplyDelete