This is an old revision of the document!
While stacks followed LIFO (last in first out) queues follow FIFO (First in First out).
Here is a simple struct you can implement for your queue structure:
struct queue { cardnode* front; // Pointer to the front of the queue cardnode* rear; // Pointer to the rear of the queue int size; // Size of the queue };
The provided struct consists of a front and rear pointer of a queue along with a size variable.