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.
-
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
-
C++
-
STL Containers
queuestack
-
Object-Oriented Programming
-
Custom utility classes:
clsDateclsInputValidation
cpp-queue-line-system
│
├── clsQueueLine.sln
├── .gitignore
│
├── clsQueueLine
│ ├── clsQueueLine.cpp
│ ├── clsQueueLine.h
│ ├── clsDate.h
│ ├── clsInputValidation.h
│ ├── clsString.h
│ └── clsQueueLine.vcxproj
- Each queue has a prefix (example:
A0,B0). - When a client arrives, a ticket is issued.
- The system stores the ticket in a queue.
- Clients are served in First-In-First-Out (FIFO) order.
- The expected waiting time is calculated using:
Expected Serve Time = Waiting Clients × Average Serve Time
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
_______________________
This project demonstrates:
- Queue data structure
- Stack usage for reversing order
- Object-Oriented Programming
- Encapsulation
- STL container manipulation
- Simulation of real-world queue systems