From ca16dcbc9c3d91468f6fb02c36a2ba4d84dd48e3 Mon Sep 17 00:00:00 2001 From: yangtengze Date: Mon, 24 Apr 2023 19:17:32 +0800 Subject: [PATCH] change --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ data.h | 2 ++ 2 files changed, 50 insertions(+) diff --git a/README.md b/README.md index 1b67efb..034a8b5 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,54 @@ 确定要退出吗?(Y/N): n 程序退出 ``` +### C1: 查找图书 +选择菜单命令: 1 ,提示Find Book 和 Enter book ID: 字样,则继续输入图书编号。若没找到,提示Not found;若找到,提示Found 并 打印书籍信息。 +``` +请选择:1 + +Find Book + +Enter book ID: 1 +Not found +``` +``` +请选择:1 + +Find Book + +Enter book ID: 1 +Found +************ +Book + +**************** id: 1 **************** +**** title: 《 2 》**** +************** Number: 3 ************** +``` +### C2:借用图书 +选择菜单命令:2,提示Boorow Book和Which book you wanna boorow ?,则继续输入图书编号。若该书本身不存在,则提示NOT FOUND THIS BOOK;如图书存在,则提示OK。 +``` +请选择:2 + +Boorow Book + +Which book you wanna boorow ? +2 + +NOT FOUND THIS BOOK +``` +``` +请选择:2 + +Boorow Book + +Which book you wanna boorow ? +1 +********* +OK +********* +``` ### C3:归还图书 选择菜单命令:3 提示归还图书 和 你想要归还哪一本书?输入图书编号,若在系统中没有该图书,则添加图书并输入图书的编号,数量和数目,显示相关信息并归还成功,否则直接退出。 ````` @@ -188,6 +235,7 @@ Which book you wanna revise ? 2 No such book `````` + # 概要设计 系统主要分为用户界面和数据处理两大模块。 diff --git a/data.h b/data.h index f05e2a5..5a3bfb0 100644 --- a/data.h +++ b/data.h @@ -161,6 +161,7 @@ void DoRepaidBook() cout << endl << "Repaid Book" << endl<> id; cout << endl; if (find(id)){ @@ -178,6 +179,7 @@ void DoBoorowBook() cout << endl << "Boorow Book" << endl <> id; cout << endl; if (find(id)){