Initial commit

This commit is contained in:
biubiubiuBui 2021-10-19 16:14:39 +08:00
parent cb064767a2
commit ae791921a3
1 changed files with 20 additions and 20 deletions

View File

@ -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