Library Management System
Using C++
Submitted By: [Your Name]
Class: 11
Subject: Computer Science
Abstract
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
principles and provides an easy-to-use console-based interface.
Introduction
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
overview of the design.
Code Implementation
#include <iostream>
#include <vector>
#include <string>
using namespace std;
class Book {
public:
int id;
string title;
string author;
bool isIssued;
Book(int id, string title, string author) {
this->id = id;
this->title = title;
this->author = author;
this->isIssued = false;
}
};
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 << [Link] << "\t" << [Link] << "\t" << [Link]
<< "\t" << ([Link] ? "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.