Get the App
SLTechnology News&Howtos  ›  Development  › 

How to write the code of the book lending system realized by C language

Shulou Source: shulou.com Published: 2022-06-01 06:16:24 09月21日 Update

In this article, the editor introduces in detail "how to write the code of the book lending system in C language". The content is detailed, the steps are clear, and the details are handled properly. I hope that this article "how to write the code of the book lending system in C language" can help you solve your doubts.

/ * * @ title: data structure experiment @ name: application of linear tables (sequential tables)-- my library @ object: [experimental purpose] apply linear tables to solve problems. There are a number of books, and the books lent need to be registered. Use two linear tables to save the information of existing books and borrowed books respectively, and realize the functions of adding new books, borrowing books, returning books, printing and so on. Learn how to write an imperative program interface. [experimental hint] 1. The Book type of the description book is described in book.h, and several related functions can be called. two。 Complete all kinds of operations of the sequence table in sqlist.h. 3. When borrowing a book, enter the title of the book, if there is a deposit, delete it from the deposit list and insert the borrowing table. 4. When returning the book, enter the title of the book. if you borrow the book, delete it from the borrowing list and insert it into the deposit table. @ include: header file used @ usage: please check the "TO-DO list" and complete the code @ copyright: BTC 2005, Zhuang Bo @ author: Zhuang Bo @ date: 2005 @ description:***/ # include # include using namespace std as required. # include "book.h" # define ElemType Book / / using Book as the type of linear table element # include "sqlist.h" SqList s; / / Book storage table SqList b; / / Library table void SystemInitialize (); void SystemTerminate (); void SystemRun (); int main (int argc, char * argv []) {SystemInitialize (); SystemRun (); SystemTerminate (); system ("PAUSE"); return 0 } void SystemInitialize () {InitList (s); InitList (b); Book mybooks [] = {{"C Programming Language"}, {"Data Structures"}, {"C++ Programming Language"}, {"Effactive C++"}, {"More Effactive C++"}, {"Design Patterns"}}; for (int iTun0; I)

Tags: Elements success order book title storage code function space linearity length system language borrowing article type clocking allocation positioning experiment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MariaDB vpn Shulou Technology Shulou Information