This is a C++ terminal-based program that uses mariadb-connector-c with MariaDB to manage a library storage system. It allows users to register book loans and applies penalties for late returns.
- Connects to a MariaDB database.
- Registers book loans.
- Manages penalties for overdue returns.
- Command-line interface.
Before running the program, make sure you have the following installed:
- MariaDB (database and server)
- MariaDB Connector/C
- CMake and a C++ compiler (such as
g++orclang)
On Debian-based systems (like Ubuntu or Zorin OS), you can install them with:
sudo apt update
sudo apt install mariadb-server mariadb-client libmariadb-dev cmake g++git clone https://github.com/LudwingArandiaa/library-storage-system.git
cd library-storage-systemmysql -u root -p < database.sqlg++ main.cpp -o main -lmariadb./mainLet me know if you'd like any modifications! 🚀