12-10-2019 02:26 AM
I believe getting your basics straight would be a better option. As far as my knowledge goes, queues can be implemented using an array and basic array operations can easily be performed on the same if the situation is such. Understanding my answer should have been the first thing that you should have done.
12-10-2019 07:55 AM
I really think looking at the date of the message you were posting into should have been the first thing you should have done!
The second thing is trying to NOT come in to the forum with a know-it-all attitude when you had just joined it hours ago. Try reading some threads and learning the way the forum operates and its etiquette before jumping in with both feet without looking.
Read through the messages in Using the NI Community
12-10-2019 09:22 AM
OK, A FLush queue will return an array of undeqeueud queue elements. Inspect, insert, reenqueue.
But, I'll stand by my 6 year old post.... there is a more elegant way.
12-10-2019 09:35 AM - edited 12-10-2019 09:36 AM
@ayudhn wrote:
I believe getting your basics straight would be a better option. As far as my knowledge goes, queues can be implemented using an array and basic array operations can easily be performed on the same if the situation is such. Understanding my answer should have been the first thing that you should have done.
While a queue CAN be implemented using an array, the operations allowed on a queue is a SUBSET of the operations allowed on an array, and for good reason.
A Queue retains order and is a first-in-first-out system. Anything else is simply not a queue. Sorry.