How ahsan-ra2a/ticket-booking-system works
This is a C++ console ticket-booking project. The README describes a customer journey through authentication, ticket selection, route details, payment, and receipt generation, but the sampled main.cpp currently runs a hard-coded ticket-printing demo; its home-page call is commented out. The graph preserves the documented booking capabilities while distinguishing them from the demonstrated entry point. Payment persistence and some menu wiring are only documented, so those links cite the README; the account data file is not present in the tree.
Main entry points: Account.cpp Login and Signup · main.cpp Program Entry · project.cpp Ticket Options · ticket.txt Ticket File
Components 14
Access and Accounts
- Login and Signup
Account.cpp - Customer Menu
Account.cpp - Admin Access
Account.cpp - Card Payment
Account.cpp
Booking and Tickets
- Program Entry
main.cpp - Ticket Options
project.cpp - Location Details
project.cpp - Travel Tickets
project.cpp - Cinema Tickets
project.cpp - Ticket Receipt
project.cpp
File Persistence
- User Records
Users.txt - Account Data
Account.cpp - Ticket File
ticket.txt
Other components
- Customer
Connections 17
- Customer → Login and Signup: starts
README.md - Login and Signup → User Records: reads and writes
Account.cpp - Login and Signup → Customer Menu: opens
Account.cpp - Login and Signup → Admin Access: routes login
Account.cpp - Customer Menu → Ticket Options: views options
Account.cpp - Customer → Ticket Options: selects ticket
README.md - Ticket Options → Location Details: requests locations
README.md - Location Details → Travel Tickets: supplies route
project.cpp - Ticket Options → Cinema Tickets: offers cinema
README.md - Customer → Card Payment: provides card details
README.md - Card Payment → Account Data: loads account data
Account.cpp - Customer → Program Entry: runs demo
main.cpp - Program Entry → Travel Tickets: creates and prints
main.cpp - Program Entry → Cinema Tickets: creates and prints
main.cpp - Program Entry → Ticket File: writes tickets
main.cpp - Customer → Ticket Receipt: receives after payment
README.md - Ticket Receipt → Ticket File: saves receipt
project.cpp