In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use C++ to write and implement the library management system. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
The details are as follows
Write a book management system for librarians, the design of the book management system is mainly to achieve the management of books and related operations, including three tables:
Book information table-stores the basic information of a book, including book number, title, author, publisher, publication date, number of libraries, pricing, etc.
Reader information table-stores the basic information of the reader, including student number, name, college, professional class, etc.
Book borrowing form-stores relevant information about books borrowed by readers, including student number, name, book number, book title, borrowing date, due date, return date, etc.
The following functions are accomplished by menu selection:
1. Book information addition function: including book number, book title, author, publishing house, publication date, number of libraries, pricing, etc.
2. Book information inquiry: by book title and author name respectively.
Make inquiries according to the publishing unit, etc.
3. Sorting of book information: sort by book number, title, etc., in ascending order.
4. modification and deletion of book information: modify and delete books according to the book number or title.
5. reader information addition function: including student number, name, college, major, class and so on.
6. Inquiry of reader information: inquire according to student number, name, class and so on.
7. Sorting of reader information: sort by student number, college, etc., in ascending order.
8. Modification and deletion of reader information: modify and delete reader information according to student number + name
9. Book lending: enter the student number + book number. If the number of stores in the book information table is greater than 0, you can lend it. After lending the corresponding quantity, modify the number of stores in the book information table, and add the student's loan to the book lending table.
10. Book return: enter the student number + book number, modify the number of stores in the book information table, and record the return time of the student in the book borrowing table.
11. Book lending inquiry: inquire according to the student number, book title, college and so on.
# include # include const int INC=20;using namespace std;class Date {/ / Date class: date class public: int day; / / day int month; / / month int year / / year Date (int dudes 1 void setMonth int malls 1) {/ / Constructor default initial date 2012.1.1 / / determine the validity of the date if (d > 0&&d0&&m0) year=y;else year=2012;} void setDay (int d) {day=d;} / / set date void setMonth (int m) {month=m;} / / set month void setYear (int y) {year=y } / / int getDay () {return day;} / / get year, month, day, int getMonth () {return month;} int getYear () {return year;} void disp () {cout
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.