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.csv
andbooks.csv
are in the same directory.
The.csv
files 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.csv
files to login to the system.
Details inuser.csv
file are stored in the format:Name,userid,password,usertype,fine
. Whereusertype=1
for Student,usertype=2
for Professor andusertype=3
for Librarian.
(There is nofine
field in the end for the Librarian). - Alternately, you can start from scratch by entering a default librarian login detail:
username=defaultLibrarian
andpassword=1234
and 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
.csv
files(saved), so the data is not lost when we logout. It is read back again when run the program.