图书管理程序设计(Library management program design).doc
文本预览下载声明
图书管理程序设计(Library management program design)
Library management program design
system requirements
A book storage: book information, including the title, book number, inventory, a total of 4 biomass. First, enter the information of the 3 books and deposit them in the file book.dat. When a new book comes into storage, determine whether there is a book in the document (that is, comparing the title of the book); if so, modify the amount of stock and the amount of existing information; if not, add the books information to the document.
Two, book query: enter a number, in the document to find the book, all the information to find the output of the book; if that is the output of the failure to find information was not found.
Three, borrow management
(1) each readers information includes name, number, 1 library cards (limited to a Book), and enter 3 readers information in the file reader. Dat.
(2): enter the library registration number of readers, books ISBN, first name to determine whether the file reader.dat, if there will be stored in a library card number (Note: the card information is zero, as the initial library after the library card information to the library call number.), the corresponding content and modify the file reader.dat, the existing modified file book.dat this book at the same time. If reader.dat does not have this name, then should indicate the mistake
(3) book management: input reader number, also ISBN book, library card information will be set to zero, the corresponding content and modify the file reader.dat, the existing modified file book.dat this book at the same time.
Four. Output all books information and all readers information
Five, quit the system.
Six, additional instructions: the system will improve the functions of the future: add readers, a reader can borrow and return books and so on
overall design
First, carefully read the system requirements, first of all, this system is divided into the following modules (that is, the following function
显示全部