T
Tony Johansson
Hello!
Here I have declared a queue consisting of ints which is a value type.
This is a queue of ints for example 5 int in the queue 6 7 8 4 7
Queue<int> intQueue = new Queue<int>();
Here I have a queue consisting of queue of ints
Each element in the queue is a queue of ints.
Queue<Queue<int>> queueQueue = new Queue<Queue<int>> ();
Now to my question:
Question number 1: Is it right to say for this declaration
Queue<Queue<int>> queueQueue = new Queue<Queue<int>> ();
that
Each element in the queue is a queue of ints. So if the queue have three
elements you have three queues of ints in the queue ?
Question number 2: When you have a queue consisting of queue of ints I
assume that each element is a reference to the queue
of ints is this right understood? If the queue have three elements then each
element is a reference to the queue of ints right?
//Tony
Here I have declared a queue consisting of ints which is a value type.
This is a queue of ints for example 5 int in the queue 6 7 8 4 7
Queue<int> intQueue = new Queue<int>();
Here I have a queue consisting of queue of ints
Each element in the queue is a queue of ints.
Queue<Queue<int>> queueQueue = new Queue<Queue<int>> ();
Now to my question:
Question number 1: Is it right to say for this declaration
Queue<Queue<int>> queueQueue = new Queue<Queue<int>> ();
that
Each element in the queue is a queue of ints. So if the queue have three
elements you have three queues of ints in the queue ?
Question number 2: When you have a queue consisting of queue of ints I
assume that each element is a reference to the queue
of ints is this right understood? If the queue have three elements then each
element is a reference to the queue of ints right?
//Tony