Like Tree1Likes
  • 1 Post By Momerath

Help with Queues and Stacks

This is a discussion on Help with Queues and Stacks within the C# Programming forums, part of the General Programming Boards category; I am incredibly new to c# and am just learning to work with queues and stacks. I have created a ...

  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    22

    Help with Queues and Stacks

    I am incredibly new to c# and am just learning to work with queues and stacks. I have created a simple queue of nintendo games and used the Enqueue and Dequeue for practice. How can I copy this queue into a stack?
    Last edited by rpmischris; 11-28-2012 at 08:55 PM.

  2. #2
    Registered User
    Join Date
    Mar 2011
    Posts
    41
    Stack<T> contains a constructor that has an IEnumerable as a parameter. Just your luck, Queue<T> implements the IEnumerable interface.
    nvoigt likes this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stacks and Queues
    By antros48 in forum C Programming
    Replies: 2
    Last Post: 11-07-2011, 11:02 PM
  2. linked lists, stacks and queues
    By aniramg69 in forum C Programming
    Replies: 10
    Last Post: 11-29-2008, 11:58 AM
  3. Stacks and queues info
    By Emeighty in forum C++ Programming
    Replies: 4
    Last Post: 11-02-2008, 01:41 AM
  4. stacks and queues
    By j0hnb in forum C Programming
    Replies: 4
    Last Post: 04-16-2003, 10:44 PM
  5. using Stacks & Queues to compare Strings
    By eskimo083 in forum C++ Programming
    Replies: 1
    Last Post: 03-09-2003, 05:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21