- 0
- 0
- 约1.81万字
- 约 24页
- 2026-02-05 发布于河北
- 举报
C++编写仓库管理系统
//functions.h
#includeiostream
#includestring
//includefstream
#includecassert
#includeiomanip
#includeconio.h
usingnamespacestd;
voiddenglu();
voidchoice();
voidzhuce();
charfirst_face();
voidin_storage();
voidselect_time();
voidout_storage();
voidselect_ele();
voidselect_name();
voidselect_kind();
voidselect_all();
voidcall();
voiddenglu()
stringusernamel^passportl^amel;
stringusername,passport;
ifstreamstoreile(userdate.txt);
if(istoreile)
(
cout«\n\n\t对不起,顾客文献丢失。。。\n\n\t;
systemfpause);
return;
)
coutcc顾客登录:«endl;
cout«”请输入顾客名:
cin»username;
coutcc”请输入密码:
cin»passport;
boolflag=false;
while(storeile»usernamel»passportl»namel)
if(usernamel==u$ernamepassportl==passport)
flag=true;
systemfcls);
cout登录成!endl;
AA
cout欢迎您,namel_endl;
systemfpause);
)
elseif(usernamel==username11passportl==passport){
cout”顾客名或密码错误!endl;
denglu();
)
)
storeile.close();
call();
choice();
)
voidchoice()
(
chara;
a=first_face();
while(l){
switch(a){
case1:in_storage();break;
case2:out_storage();break;
case3:select_ele();break;
,
原创力文档

文档评论(0)