0% found this document useful (0 votes)
14 views5 pages

Library Management System Project Report

Uploaded by

ultimatehero70
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views5 pages

Library Management System Project Report

Uploaded by

ultimatehero70
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Library Management System Project

Project Title: Library Management System Project

Author: Ayush Purawr

Date: January 8, 2023

Overview:

This project is a console application written entirely in C++ language, utilizing a MySQL database for

managing a library's operations. The system provides functionalities for both admin and student

users, such as managing books, issuing and returning books, and viewing account details.

Features:

1. Admin can:

- Log in to the system.

- Manage book stocks.

- View student logs to check issued and deposited books.

2. Students can:

- Register and log in.

- View all books.

- Search for books.

- Issue books.

- Return books.

- View account details.

Development Environment:
- Programming Language: C++

- Database: MySQL (managed using Xampp software)

- IDEs: Dev C++, Code::Blocks (16.x version recommended for database connectivity issues)

Setup Instructions:

1. Install the following software:

- Dev C++

- Code::Blocks (16.x version)

- Xampp

2. Configure MySQL:

- Run Apache and MySQL using Xampp.

- Open localhost/phpmyadmin in your browser.

- Execute the SQL commands to create the 'library' database and its tables ('users' and 'book').

Default Admin Credentials:

Username: admin

Password: admin

Source Code Summary:

The source code is implemented in C++ with classes and methods to manage user and book

functionalities. Below is a summary of the primary components:

1. User Class:

- Handles user registration, login, and logout.

- Allows admin to view all registered users.


2. Book Class (inherits User):

- Manages book details (addition, search, issue, and return).

- Admin-only access for adding new books.

3. Main Function:

- Provides a menu-driven interface for interacting with the system.

- Handles user inputs for various operations.


Detailed Code Analysis and Workflow

Code Analysis:

1. showtime() Function:

- Displays the current system time.

- Provides a user-friendly interface.

2. User Class:

- Includes private variables for username and password.

- Provides methods for user registration, login, and viewing user details.

3. Book Class:

- Inherits the User class.

- Manages book operations such as adding, searching, issuing, and returning books.

4. Database Operations:

- Utilizes MySQL queries to interact with the 'library' database.

- Includes error handling for database connectivity issues.

System Workflow:

1. Admin Workflow:

- Log in using default credentials.

- Add new books to the library.

- View all users.

2. Student Workflow:
- Register as a new user.

- Log in to access the system.

- Search for and issue books.

- Return issued books.

Menu Options:

1. Login

2. Register

3. View All Books

4. Search Book

5. Issue Book

6. Return Book

7. View All Users (Admin Only)

8. Add Book (Admin Only)

9. View Current User Details

10. Logout

0. Exit

You might also like