资源预览内容
第1页 / 共21页
第2页 / 共21页
第3页 / 共21页
第4页 / 共21页
第5页 / 共21页
第6页 / 共21页
第7页 / 共21页
第8页 / 共21页
第9页 / 共21页
第10页 / 共21页
亲,该文档总共21页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
作品名称开发者:一、 系统背景:本软件能减轻对货物数目管理及价格盈亏等信息处理的工作量以便能快捷及时准确的调整货物的仓储量达到最合理化。可以使店主不失效率的节省大量精力用于其他方面 符合当今社会的商业形式而且本软件体积小操作简单是管理仓库的不二选择二、 系统简介:设计亮点:三级菜单使操作更简便明了密码操作能有效保证客户信息的安全性独特的dos命令调用使信息存储的实体属性为隐藏且无扩展名大大增大了安全系数数据结构为链表摆脱了数据数量的限制提供三种查看模式并会标出排名退出店主模式时会提示是否保存若选择yes着进行保存操作基本功能:在员工模式下可输入卖出货物的名称和数目程序自动在后台进行一系列的操作新建数据并同时对其处理修改数据插入数据删除数据查找数据查看数据数据存档修改密码三、 系统结构图 #define LEN sizeof(struct shop)#include#include#include#includestruct shopchar name30;float price_in;float price_out;int num_in;int num_now;int num_sold;float win;float percent;struct shop *next;int n=0;void main(void)void auto1(struct shop *h_p);int menu1(struct shop *h_p);void print1(void);void assistant(struct shop *head);int password(void);int menu2(struct shop *h_p);void print2(void);void creat(struct shop *h_p);void rewrite(struct shop *h_p);void insert(struct shop *h_p);void deleat(struct shop *h_p);void search(struct shop *h_p);void printall(struct shop *h_p);void save(struct shop *head);void password_set(void);int password_exi(struct shop *h_p);int data_exi(struct shop *h_p);void load(struct shop *h_p);void save(struct shop *head);struct shop *addbuild(struct shop *h_p);void sort0(struct shop *h_p);int search1(struct shop *h_p,char a30);void sort1(struct shop *h_p);void sort2(struct shop *h_p);void sort3(struct shop *h_p);void print3(void);void password_create(void);struct shop *addbuild(struct shop *h_p);int a;struct shop *head,*h_p;head=NULL;h_p=&head;auto1(h_p);doa=menu1(h_p);while(a!=3);system(cls);printf(谢谢使用_);getch();int menu1(struct shop *h_p)int a,b;struct shop *head;head=*h_p;print1();scanf(%d,&a);putchar(n);getchar();doswitch(a)case 1:assistant(head);break;case 2:if(password()dob=menu2(h_p);while(b!=9);break;default:break;if(a!=3)system(cls);print1();scanf(%d,&a);while(a!=3);return(a);int menu2(struct shop *h_p)int b;char a;struct shop *head;head=*h_p;print2();scanf(%d,&b);putchar(n);getchar();doswitch(b) case 1:creat(h_p);break;case 2:rewrite(h_p);break;case 3:insert(h_p);break;case 4:deleat(h_p);break;case 5:search(h_p);break;case 6:printall(h_p);break;case 7:head=*h_p;save(head);break;case 8:password_set();break;default:break;if(b!=9)system(cls);print2();scanf(%d,&b);getchar();while(b!=9);printf(n保存吗?(y/n):);putchar(n);scanf(%c,&a);if(a=y)head=*h_p;save(head);return(b);void auto1(struct shop *h_p)if(password_exi(h_p) & data_exi(h_p)load(h_p);void print1(void)system(cls);printf(*n);printf( 仓库管理系统 n);printf(*n);printf( n);printf( #* 菜单 *# n);printf( #| 1.员工模式 |# n);printf( #| 2.店主模式 |# n);printf( #| 3.退出 |# n);printf( #*# n);printf( n);printf(n请选择(1-3):);void assistant(struct shop *head)char a50,c=y;int b;struct shop *i;i=head;while(c=y)system(cls);printf(n请输入卖出的商品名称:n);gets(a);putchar(n);printf(n请输入卖出的商品数量:n);scanf(%d,&b);putchar(n);while(strcmp(i-name,a)!=0&i-next!=NULL)i=i-next;if(i-next!=NULL)i-num_now-=b;i-win=(i-num_in-i-num_now)*(i-price_out-i-price_in);elseprintf(n此商品不存在或通知店主更新数据库n);printf(n继续吗?(y/n):);putchar(n);c=getchar();getchar();save(head);int password(void)FILE*fp;char a50,b50;int i;system(cls);fp=fopen(c:y_secrea,rb);fscanf(fp,%s,&a);fclose(fp);printf(请输入密码:n);putchar(n);i=0;dobi=getch();printf(*);i+;while(bi-1!=13&i19);bi-1=0;if(strcmp(a,b)=0)return(1);elsereturn(0);void print2(void)system(cls);printf(*n);printf( 店主模式 n);printf(*
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号