How alax0915/cpp works
This is a console-based car-rental agency. The user selects registration, rental, return, or listing actions from a menu; handlers validate input and update in-memory customer and car arrays, with rentals stored on each customer. The graph distinguishes menu orchestration, fleet operations, customer operations, and rental operations. Evidence is limited to the supplied excerpts and source index; no README capabilities or external integrations are documented.
Main entry points: main.cpp Console menu · function.cpp In-memory records · create_rental.cpp Create rental · register_car.cpp Register car
Components 15
Menu
- Console menu
main.cpp - In-memory records
function.cpp
Fleet
- Car record
car.cpp - Register car
register_car.cpp - Validate car
validate_car.cpp - List available cars
display_car.cpp
Customers
- Customer record
customer.cpp - Register customer
register_customer.cpp - Validate customer
validate_customer.cpp - List customers
display_customer.cpp
Rentals
- Rental record
rent.cpp - Validate rental
validate_rent.cpp - Create rental
create_rental.cpp - Return car
return_car.cpp
Other components
- Agency user
Connections 19
- Agency user → Console menu: chooses action
main.cpp - Console menu → Register car: dispatches
main.cpp - Console menu → Register customer: dispatches
main.cpp - Console menu → Create rental: dispatches
main.cpp - Console menu → Return car: dispatches
main.cpp - Console menu → List available cars: dispatches
main.cpp - Console menu → List customers: dispatches
main.cpp - Register car → Validate car: validates
register_car.cpp - Register customer → Validate customer: validates
register_customer.cpp - Create rental → Validate rental: validates
create_rental.cpp - Create rental → Validate rental: checks customer
create_rental.cpp - Create rental → List available cars: displays options
create_rental.cpp - Return car → Validate rental: checks customer
return_car.cpp - Register car → In-memory records: stores car
register_car.cpp - Register customer → In-memory records: stores customer
register_customer.cpp - Create rental → In-memory records: updates records
create_rental.cpp - Return car → In-memory records: updates records
return_car.cpp - List available cars → In-memory records: reads cars
display_car.cpp - List customers → In-memory records: reads customers
display_customer.cpp