How to realize a small Book Management system on C++
This article is about how C++ implements a small library management system. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The details are as follows
Because of the course design, it is necessary to implement a small library management system.
Contains features:
Problem description:
Design a system to manage the book information, information description: description of the basic information about the system, such as: book name, book number, unit price, author, existence status, borrower's name, gender, student number and so on.
Basic requirements:
Basic functions:
1. The input of basic information of new books.
2. Inquiry of basic information of books.
3. Delete the information of canceling books.
4. Register the borrower.
5. Go through the procedures of borrowing books (non-registered members cannot borrow books).
6. Go through the formalities of returning books.
7. Count the inventory of books and the number of books lent out.
Three text files need to be created: record.txt book.txt reader.txt
Header file for operating.h:
# include#include#include # include#include#include # include using namespace std; int all_stock = 0 for out_stock = 0 int int times=0;void outData (int n) / / n is the number of data per row in txt {for (int item0 int I)