
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

int remove () // take out the oldest element inserted in the queue class queueFIFO { protected: struct node { int item; node *next } node *head, *last; node *get_node(); void free_node(node *); public: queueFIFO (); void insert (int x); int remove (); };