Skip to content

A console-based C++ application for managing library transactions, including adding, modifying, and deleting records for books and students, and handling book issuance and return.

Notifications You must be signed in to change notification settings

Ashwani4545/library-management-system-using-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Library-Management

A college project using OOPs

Library Management System This is a console-based Library Management System developed in C++. The system is designed to computerize and simplify the management of library transactions, including adding, modifying, and deleting records for both books and students, as well as handling the issuing and depositing of books.

The program uses file I/O to store data, ensuring that records persist between sessions.

Features Student Management:

Create new student records.

Display a list of all students.

Search for a specific student's record by admission number.

Modify existing student records.

Delete student records.

Book Management:

Create new book records, including book number, name, and author.

Display a list of all books available in the library.

Search for a specific book's details by book number.

Modify book details.

Delete book records.

Transaction Management:

Book Issue: Issue a book to a student, provided they have not already been issued a book. The system keeps track of the issued book number and a token to prevent multiple issues.

Book Deposit: Deposit a book back to the library. The system calculates and displays a fine if the book is returned after a 15-day period.

System Requirements The project was developed in a specific environment, but the core C++ code should be portable.

Operating System: Microsoft Windows® (The code uses conio.h for console functions like clrscr()).

Compiler: Turbo C 7 v2.1 (or a compatible C++ compiler with conio.h support).

Project Structure The project is organized into the following files:

main.cpp: Contains the main logic of the program, including global declarations for file streams, function prototypes, and the main menu loop.

_mingw.h and conio.h: These are header files specific to the MinGW and Turbo C environments, respectively, providing functions for console input/output like clrscr() (clear screen) and getche() (get character with echo).

CS.docx: A documentation file providing an overview of the project, its objectives, and a list of classes and functions. It also contains screenshots of the running application.

How to Build and Run Since the code uses older, non-standard headers (conio.h), it might not compile with modern compilers like GCC or Clang without modification. The original environment was Turbo C.

Open the project in Turbo C: Load main.cpp into the Turbo C IDE.

Compile: Compile the main.cpp file. The headers fstream.h, conio.h, stdio.h, process.h, string.h, and iomanip.h are included, so ensure these are correctly configured in the compiler's include path.

Run: Execute the compiled program. The application's menu will appear in the console.

Usage The program starts with an introduction screen.

The MAIN MENU presents options to enter the ADMINISTRATOR MENU, BOOK ISSUE, BOOK DEPOSIT, or EXIT.

The ADMINISTRATOR MENU provides a full suite of options for managing student and book records.

Follow the on-screen prompts to interact with the system, such as entering book numbers or student admission numbers for various operations.

About

A console-based C++ application for managing library transactions, including adding, modifying, and deleting records for books and students, and handling book issuance and return.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published