-
Notifications
You must be signed in to change notification settings - Fork 1
Queue_GetValuePos
Sancky edited this page Sep 26, 2022
·
3 revisions
Get the position of an element from an queue.
Queue_GetValuePos(queue, value)new Queue:queue<10>;
Queue_InsertValue(queue, 1);
Queue_InsertValue(queue, 5);
Queue_InsertValue(queue, 10);
Queue_InsertValue(queue, 15);
printf("The position of the element 10 is %d.", Queue_GetValuePos(queue, 10));Returns the position of the element, otherwise INVALID_QUEUE_VALUE.