In my c sharp program, i have 5 items in queue.From 0 1 2 4.
When user press button i want to change the position of item just like
first item should be 1 and last item should become 0.
That is like 1 2 3 4 0 and again 2 3 4 0 1.
How can i do like this ?
In my c sharp program, i have 5 items in queue.From 0 1 2
Share
What class are you using to implement your queue?
If using a List<>, you could do it like this: