linked list and arrays build stack and queue ..?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waceys
    New Member
    • Jul 2007
    • 1

    linked list and arrays build stack and queue ..?

    hello everybody i need some body help me to make code for a linked list and arrays build stack and queue such that when i push an element in the stack i can dequeue it first from the queue and when i enqueue an elemet in the queue , it will be the last element can be popped from the stack. by c++


    pls any body help ass son as posible........ .....

    thanks all
  • scruggsy
    New Member
    • Mar 2007
    • 147

    #2
    The STL contains pre-built container classes for stacks, queues, etc.
    If you want help building your own, you should probably post the code you have so far, or describe where you are having difficulty.

    Comment

    • kky2k
      New Member
      • May 2007
      • 34

      #3
      Originally posted by waceys
      hello everybody i need some body help me to make code for a linked list and arrays build stack and queue such that when i push an element in the stack i can dequeue it first from the queue and when i enqueue an elemet in the queue , it will be the last element can be popped from the stack. by c++


      pls any body help ass son as posible........ .....

      thanks all
      i will list the concepts what u have to learn for achieving ur requirements..
      1)structure in C++.
      2)Linked List in C++.
      3)Stack(LIFO)
      4)Queue(FIFO)
      5)Adding a node to the beginning of the linked list
      6)Adding a node to the end of the linked list
      7)Deleting a node from the beginning of a linked list
      7)Deleting a node from the end of the linked list

      if u learn the above concepts..then u can do coding without any problem..if u face any problem during coding then come here with ur code then everyone will be ready to sort it out...

      Comment

      Working...