Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# loop through queue

// Create an integer queue
Queue<int> myQueue = new Queue<int>();

// Loop over the existing array, and add to queue
foreach (int score in scores)
{
    myQueue.Enqueue(score);
}

// myQueue contains:
// 3  4  2  4  5  4  2  5  1
Source by kodify.net #
 
PREVIOUS NEXT
Tagged: #loop #queue
ADD COMMENT
Topic
Name
2+2 =