C语言--仓库管理系统005

上传人:鲁** 文档编号:512876288 上传时间:2022-10-06 格式:DOC 页数:118 大小:122.50KB
返回 下载 相关 举报
C语言--仓库管理系统005_第1页
第1页 / 共118页
C语言--仓库管理系统005_第2页
第2页 / 共118页
C语言--仓库管理系统005_第3页
第3页 / 共118页
C语言--仓库管理系统005_第4页
第4页 / 共118页
C语言--仓库管理系统005_第5页
第5页 / 共118页
点击查看更多>>
资源描述

《C语言--仓库管理系统005》由会员分享,可在线阅读,更多相关《C语言--仓库管理系统005(118页珍藏版)》请在金锄头文库上搜索。

1、.#include#include#includeconio.h#includestdlib.h#includestring.hstructuser/*管理员*/charname10;charpassword10;structusers/*用户*/charname5;charpassword5;structcargo/*货物*/charnum12;charname20;doubleprice;intcount;structcargo*next;intKEY();/*管理员密码检测与设置*/intnewKEY();/*管理员密码设置*/intchecking();/*管理员密码检测*/intch

2、ecking1();/*验证用户*/intduchu(charoutfile,structcargostu);/*读出信息*/voidchkey();/*修改密码*/voidabout(inti);/*信息*/voidEXPLAIN();/*介绍*/voidbox();/*操作格*/voidselecth(int*sel1,int*sel2,char*_key,intj);/*选择*/voidmenu();/*管理员目录*/voidgotoxy(inta,intb);/*坐标*/voidLOGO1();voidbox2();/*目录格*/void_f();/*失败界面*/void_v();/*

3、成功界面*/voidNEWusers();/*新建用户*/voidzmenu();/*主目录*/voidymenu();/*用户目录*/voidbox3();/*信息输入输出显示格*/voidshuru();/*输入信息*/voidputname(charoutfile,intj);/*输入文件名*/voidchucun(charoutfile);/*储存文件*/voidxianshi(intk);/*显示信息*/voidchazhao(intk);/*查找信息*/voidchazhaonum(intk);/*编号查找*/voidchazhaomame(intk);/*名字查找*/voidch

4、azhaoprice(intk);/*价格查找*/voidwenjianming(intk);/*文件名输出*/voidcuowu();/*找不到文件提示*/voidshanchu();/*删除数据*/voidshujiuguanli();/*数据管理*/voidyonghuguanli();/*用户管理*/voidshanchuyonghu();/*删除用户*/voidchakanyonghu();/*查看用户*/voidxiugai();/*修改数据*/main()inti=0;system(colorF0);LOGO1();zmenu();voidmenu()/*管理员目录*/char_

5、key10=;inth=9;intsel1=0,sel2=-1;system(color70);for(;)sel2=-1;while(sel2=-1)box2();gotoxy(30,4);printf(%c管理员目录%c,16,17);gotoxy(23,19);printf(%c按up/down,enter选择%c,16,17);sel2=-1;gotoxy(25,h);printf(1:数据管理%c,_key0);gotoxy(25,h+1);printf(2:用户管理%c,_key1);gotoxy(25,h+2);printf(3:修改管理员密码%c,_key2);gotoxy(2

6、5,h+3);printf(4:软件信息%c,_key3);gotoxy(25,h+4);printf(5:返回%c,_key4);selecth(&sel1,&sel2,_key,4);system(cls();switch(sel2)case0:shujiuguanli();break;case1:yonghuguanli();break;case2:chkey();break;case3:about(2);break;case4:zmenu();break;if(sel2=sel1)break;voidymenu()/*用户目录*/char_key7=;inth=9;intsel1=0,

7、sel2=-1;system(color70);for(;)sel2=-1;while(sel2=-1)box2();gotoxy(30,4);printf(%c用户目录%c,16,17);gotoxy(23,19);printf(%c按up/down,enter选择%c,16,17);sel2=-1;gotoxy(25,h+1);printf(1:显示所有文件名%c,_key0);gotoxy(25,h+2);printf(2:输出一个文件内信息%c,_key1);gotoxy(25,h+3);printf(3:查找一个%c,_key2);gotoxy(25,h+4);printf(4:软件

8、信息%c,_key3);gotoxy(25,h+6);printf(5:返回%c,_key4);selecth(&sel1,&sel2,_key,4);system(cls();switch(sel2)case0:wenjianming(3);break;case1:shujiuguanli();break;case2:chazhao(3);break;case3:about(3);break;case4:zmenu();break;if(sel2=sel1)break;voidzmenu()/*主目录*/char_key4=;inth=9;intsel1=0,sel2=-1;inti=0;s

9、ystem(color70);for(;)sel2=-1;while(sel2=-1)box2();gotoxy(30,4);printf(%c主界面%c,16,17);gotoxy(23,19);printf(%cPressup/down,enterchoose%c,16,17);sel2=-1;gotoxy(25,h);printf(1:管理员登录%c%c,_key0,_key0);gotoxy(25,h+1);printf(2:用户登录%c%c,_key1,_key1);gotoxy(25,h+2);printf(3:软件信息%c%c,_key2,_key2);gotoxy(25,h+3

10、);printf(4:退出%c%c,_key3,_key3);selecth(&sel1,&sel2,_key,3);system(cls();switch(sel2)case0:(i=KEY();break;case1:(i=checking1();break;case2:about(1);break;case3:exit(1);break;if(i!=0)break;if(i=1)/*管理员入口*/box();_v();system(cls);menu();elseif(i=2)/*用户入口*/box();_v();ymenu();elsebox();system(colorc0);_f(

11、);zmenu();voidyonghuguanli()/*用户管理*/char_key7=;inth=10;intsel1=0,sel2=-1;system(color70);for(;)sel2=-1;while(sel2=-1)box2();gotoxy(30,4);printf(%c用户管理%c,16,17);gotoxy(23,19);printf(%c按up/down,enter选择%c,16,17);sel2=-1;gotoxy(25,h);printf(1:查看用户%c%c,_key0,_key0);gotoxy(25,h+1);printf(2:添加用户%c%c,_key1,_key1);gotoxy(25,h+2);printf(3:删除用户%c%c,_key2,_key2);gotoxy(25,h+3);printf(4:返回%c%c,_key3,_key3);selecth(&sel1,&sel2,_key,3);system(cls();switch(sel2)

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 研究生课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号