-
Notifications
You must be signed in to change notification settings - Fork 1
Queue_Contains
Sancky edited this page Sep 26, 2022
·
2 revisions
Check if an value exists in a queue.
Queue_Contains(queue, value)
new Queue:queue<10>;
Queue_InsertValue(queue, 1);
Queue_InsertValue(queue, 5);
Queue_InsertValue(queue, 10);
Queue_InsertValue(queue, 15);
printf("Queue have the element 20: %d", Queue_Contains(queue, 20));
Returns true if value exists, otherwise false.