This is a simple Library Management System implemented in C++. It allows users to register, login, and perform various operations such as searching for books, issuing books, and returning books. The data is stored in a JSON file using the nlohmann/json library.
- User registration and login
- Case-insensitive user IDs
- Search for books
- Issue and return books
- Data stored in a JSON file for easy readability
- C++ compiler (e.g., g++)
nlohmann/jsonlibrary (included asjson.hpp)
-
Clone the repository:
git clone https://github.com/Pradipram/Library-Management-System.git cd Library-Management-System -
Ensure is in the project directory.
-
Compile the project:
g++ -o libraryManagement libraryManagement.cpp
-
Run the executable:
./libraryManagement
-
Follow the on-screen instructions to register, login, and perform various operations.
- : Main source code file
- : JSON library header file
- : JSON file to store user and book data (ignored by )
*****************************************
* *
* Welcome to Pradip Library *
* *
*****************************************
Select Option:
0. Exit
1. Register
2. Login
Enter input: 1
Enter your userId: user1
Enter your password: pass1
User Registered Successfully
Press any key to continue . . .