The Public Transport Tracking System is a console-based C++ project designed to help developers learn how to:
- Connect to a database from C++ applications.
- Organize and manage clean, maintainable C++ code.
This project provides educational value for beginner C++ developers aiming to bridge the gap between programming logic and data management through database integration.
- Database Connectivity: Demonstrates how to connect a C++ application to a database.
- CRUD Operations: Add, update, delete, and fetch transport data from a database.
- Modular Code Structure: Clean and maintainable code to encourage proper programming practices.
- User-Friendly Console: Simple text-based user interface for interaction.
- Error Handling: Handles exceptions and database connection failures effectively.
public-transport-tracking/
├── config/
│ ├── bus_management_system
│ ├── bus_management_system.db
│ └── fileDBStream.h
├── src/
│ ├── AppAdmin.cpp
│ ├── BusAdmin.cpp
│ ├── Guest.cpp
│ ├── dbStream.h
│ ├── main
│ └── main.cpp
├── output/
├── util/
├── db_connect.cpp
├── db.cpp
└── README.md
- src: Contains source files for the core logic.
- include: Header files to support modularity and organization.
- C++ Compiler (G++/Clang)
- Database Server (e.g., MySQL or SQLite)
- Database Connector Library for C++
g++ src/main.cpp src/AppAdmin.cpp src/BusAdmin.cpp src/Guest.cpp db_connect.cpp db.cpp -o transport_tracker -Iconfig -Isrc./transport_tracker- Understand the fundamentals of database integration with C++.
- Write modular and scalable C++ code by separating logic into appropriate files and headers.
- Learn best practices for handling database errors in C++ applications.
Feel free to fork the repo, create issues, and submit pull requests for improvements!


