Library Management System
Library Management System
Using C++
Class: 11
This project is a Library Management System developed in C++ to manage books, members,
and transactions efficiently. The system includes functionalities such as adding new books,
searching, issuing, and returning books. The project follows object-oriented programming
Library management systems help organize books efficiently, making it easier for libraries to
maintain records. This project aims to provide a simple yet effective system that allows users
to add, search, issue, and return books using a structured C++ program.
System Design
The system consists of different modules including book management, member management,
and transaction management. Each module is implemented using classes in C++. Below is an
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class Book {
public:
int id;
string title;
string author;
bool isIssued;
class Library {
private:
vector<Book> books;
public:
void addBook(int id, string title, string author) {
books.push_back(Book(id, title, author));
cout << "Book added successfully!" << endl;
}
void displayBooks() {
cout << "ID\tTitle\tAuthor\tStatus" << endl;
for (const auto& book : books) {
cout << book.id << "\t" << book.title << "\t" << book.author
<< "\t" << (book.isIssued ? "Issued" : "Available") << endl;
}
}
};
Conclusion
This project successfully demonstrates a Library Management System using C++. The system
allows users to manage books effectively, making it easier to organize and retrieve information.
Future enhancements could include a graphical user interface and database integration.