Implemented a console-based Library Management System using Object-Oriented Programming in C++.
There are 3 usertypes, Student, Professor and Librarian each having various functionalities.
Problem Statement contains the various functionalities in detail.
- Make sure the files
libraryManagementSystem.cpp,user.csvandbooks.csvare in the same directory.
The.csvfiles may/may not be empty but make sure there is one. - To run the code, make sure you are in the same directory as the files on the terminal and give the command :
g++ libraryManagementSystem.cpp -o libraryManagementSystem
.\libraryMangementSystem
- You can see the login details of various people in the
user.csvfiles to login to the system.
Details inuser.csvfile are stored in the format:Name,userid,password,usertype,fine. Whereusertype=1for Student,usertype=2for Professor andusertype=3for Librarian.
(There is nofinefield in the end for the Librarian). - Alternately, you can start from scratch by entering a default librarian login detail:
username=defaultLibrarianandpassword=1234and then proceed to add users and books of your choice from there. - Enter the index from the menu displayed on the terminal to perform the various operations.
- To login as another user, logout from the current user and run the code again to login again.
- Data entered in a single run is written to the
.csvfiles(saved), so the data is not lost when we logout. It is read back again when run the program.