diff --git a/README.md b/README.md index c71c972..fb3b229 100644 --- a/README.md +++ b/README.md @@ -90,15 +90,15 @@ **超级管理员模块 ** -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/7eeff0e6ed8a6195b1cf44076fd0d3ba.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/7eeff0e6ed8a6195b1cf44076fd0d3ba.writebug) **管理员模块 ** -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/051c5b4ed76e506f7779590dc9b74d14.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/051c5b4ed76e506f7779590dc9b74d14.writebug) **普通用户模块 ** -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/05f422d8943bbaa6f4d21581f1a14469.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/05f422d8943bbaa6f4d21581f1a14469.writebug) ## 2.4 数据结构和算法的设计说明 @@ -522,77 +522,77 @@ void custom_addmoney(clklist &head,string ID){ 一开始进入系统,初次使用会提示文件打开失败,是正常的,不影响功能。由于原本的“管理员信息.txt”“普通用户信息.txt”“商品信息.txt”是空的,当录入信息就不会有提示了。进入身份选择(都要帐号和密码) -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/c4c2ba8985e77b4986c71e442ba7818c.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/c4c2ba8985e77b4986c71e442ba7818c.writebug) 选择1进入超级管理员,(帐号:asd,密码123),先添加管理员。 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/6a9ddca0365858414f595bb497462730.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/6a9ddca0365858414f595bb497462730.writebug) 选择1,添加管理员信息(帐号+密码+姓名),添加完后可以选择继续添加或返回 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/c233fc894dd39fba84887e7dcc943157.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/c233fc894dd39fba84887e7dcc943157.writebug) 选择2,输入要删除的管理员帐号,直接删除管理员 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/51122b1ca294ae9234aa0256f69849a6.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/51122b1ca294ae9234aa0256f69849a6.writebug) 添加完管理员后,可返回主菜单,进入管理员模式,输入刚刚添加的管理员帐号+密码,进入管理员模式 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/747730cb4f6801fdf5c491a947061177.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/747730cb4f6801fdf5c491a947061177.writebug) 功能1,进入商品录入功能,输入商品的信息(编号,名称,单价,库存),当录入成功之后,管理员可以选择继续录入或返回(该模块当录入编号和名称和已录入的信息相同会提示出错,重新录入) -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/e8d13ebc8de2c2aa43d578587bd8893a.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/e8d13ebc8de2c2aa43d578587bd8893a.writebug) 功能2,可进行商品修改,有2种模式进行选择,输入商品编号101后,显示“商品信息.txt“文件中的商品信息,而后管理员可以输入修改后的信息 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/1c2cf3bab14dd352ce888c039d5abbe2.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/1c2cf3bab14dd352ce888c039d5abbe2.writebug) 功能3,可以进行商品信息查询,可以查询到刚刚修改的联想笔记本 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/391f03ccdc0686533afd0c456741077f.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/391f03ccdc0686533afd0c456741077f.writebug) 功能4,可以进行删除已录入的商品信息,例如,删除刚录入的联想笔记本 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/e2349a0627be0d00385943725ec4f12f.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/e2349a0627be0d00385943725ec4f12f.writebug) 删除后,进入查询功能查看联想笔记本,不存在,表明删除成功~ ~ -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/46be669d7a77767258f1fb8a7e01b142.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/46be669d7a77767258f1fb8a7e01b142.writebug) 功能5,进行已录入商品信息排序,可选择(编号,单价,库存)进行从小到大排序,编号也是可以的 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/85fd6b619d34939392888de2399a8a9d.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/85fd6b619d34939392888de2399a8a9d.writebug) 功能6,输出全部商品信息 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/d3b05bccbf5fabf6615030b925cb7c04.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/d3b05bccbf5fabf6615030b925cb7c04.writebug) 功能7,删除普通用户,如果已经有普通用户,只需要输入普通用户的帐号就可以直接删除 进入普通用户模块,如果没有帐号是无法查看和购物的,因此消费者可以自行注册 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/9e540e26d4ae2d0c4a15e5a6e18baf96.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/9e540e26d4ae2d0c4a15e5a6e18baf96.writebug) 注册完,就可以登录进入用户模块进行购物了 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/fd83fa5ea8936c0623f2cb39c8228bb6.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/fd83fa5ea8936c0623f2cb39c8228bb6.writebug) 其中,商品查询,排序,库存是和管理员一样的,就不展示了 功能4,购买商品,一开始,由于没充值时,用户余额为0,余额不足,无法购买,用户可以返回,进行充值后购买。如果充值后,余额充足就可以购买了,购买后,余额相应减少 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/0f039d1903fd6b2fe06a69d67fbbaa05.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/0f039d1903fd6b2fe06a69d67fbbaa05.writebug) 这里我先前往充值2000元,后购买如下,主机单价50,购买后余额为1950,扣费成功 -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/8ae5f25d94d511ee7f33e656a0aef798.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/8ae5f25d94d511ee7f33e656a0aef798.writebug) 功能5,用户可以随时修改自己的账户密码,保护自己的财产 功能6,就是充值了,输入系统给定的充值卡卡号,有(asd500和asd1000) -![](http://www.write-bug.com/myres/static/uploads/2021/10/19/88fba27768211a067570e11467298e9f.writebug) +![](http://www.writebug.com/myres/static/uploads/2021/10/19/88fba27768211a067570e11467298e9f.writebug) 由于刚余额1950,现在输入卡号asd1000,成功充值1000,剩余2950