Skip to content

azzamalmassah/cpp-queue-line-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Queue Line Management System (C++)

A simple Queue Line Management System implemented in C++ using Object-Oriented Programming and the Standard Template Library (STL).

The program simulates real-world service queues such as bill payment counters or subscription services, where clients receive tickets and are served in order.


Features

  • Issue new tickets for clients

  • Track waiting clients

  • Track served clients

  • Display queue information

  • Show next client to be served

  • Print all issued tickets

  • Display tickets in:

    • Right → Left order
    • Left → Right order
  • Calculate expected service time for each ticket


Technologies Used

  • C++

  • STL Containers

    • queue
    • stack
  • Object-Oriented Programming

  • Custom utility classes:

    • clsDate
    • clsInputValidation

Project Structure

cpp-queue-line-system
│
├── clsQueueLine.sln
├── .gitignore
│
├── clsQueueLine
│   ├── clsQueueLine.cpp
│   ├── clsQueueLine.h
│   ├── clsDate.h
│   ├── clsInputValidation.h
│   ├── clsString.h
│   └── clsQueueLine.vcxproj


How It Works

  1. Each queue has a prefix (example: A0, B0).
  2. When a client arrives, a ticket is issued.
  3. The system stores the ticket in a queue.
  4. Clients are served in First-In-First-Out (FIFO) order.
  5. The expected waiting time is calculated using:
Expected Serve Time = Waiting Clients × Average Serve Time

Example Output

Pay Bills Queue Info

Prefix = A0
Total Tickets = 5
Served Clients = 0
Waiting Clients = 5

Tickets: A01 <-- A02 <-- A03 <-- A04 <-- A05

Each ticket displays:

_______________________

      A03

  2026-03-07 19:10:25

  Waiting Clients = 2
  Serve Time In 20 Minutes

_______________________

Concepts Practiced

This project demonstrates:

  • Queue data structure
  • Stack usage for reversing order
  • Object-Oriented Programming
  • Encapsulation
  • STL container manipulation
  • Simulation of real-world queue systems

About

Queue Line Management System implemented in C++ using Object-Oriented Programming and the Standard Template Library (STL).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages