(店铺管理)超市仓库管理系统程序(优质)

上传人:方*** 文档编号:140647268 上传时间:2020-07-31 格式:DOC 页数:72 大小:1.04MB
返回 下载 相关 举报
(店铺管理)超市仓库管理系统程序(优质)_第1页
第1页 / 共72页
(店铺管理)超市仓库管理系统程序(优质)_第2页
第2页 / 共72页
亲,该文档总共72页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《(店铺管理)超市仓库管理系统程序(优质)》由会员分享,可在线阅读,更多相关《(店铺管理)超市仓库管理系统程序(优质)(72页珍藏版)》请在金锄头文库上搜索。

1、(店铺管理)超市仓库管理系统程序超市仓库管理系统程序如下:#include #include#include #include #include仓库管理系统.h#define N 500#define LEN sizeof(struct product)#define ILEN sizeof(struct in_product)#define OLEN sizeof(struct out_product)#define QLEN sizeof(struct quit_product)void init() head=NULL; qhead=NULL; ihead=NULL; ohead=NUL

2、L; printf(ttn); printf(tt n); printf(tt n); printf(tt n); printf(tt * n); printf(tt * * n); printf(tt * 欢迎进入 * n); printf(tt * * n); printf(tt * 超市仓库管理系统 * n); printf(tt * * n); printf(tt * n); printf(tt n); printf(tt n); printf(tt n); printf(ttnn); printf(tttt 1: 入库管理n); printf(tttt 2: 出库管理n); prin

3、tf(tttt 3: 退货管理n); printf(tttt 4: 商品统计n); printf(tttt 0: 退出系统n); void menu() printf(tttt 1: 添加数据n); printf(tttt 2: 删除数据n); printf(tttt 3: 修改数据n); printf(tttt 4: 查看数据n); printf(tttt其它: 退回上一级菜单n); void menu2() printf(ttn); printf(tt n); printf(tt n); printf(tt n); printf(tt * n); printf(tt * * n); pri

4、ntf(tt * 欢迎进入 * n); printf(tt * * n); printf(tt * 超市仓库管理系统 * n); printf(tt * * n); printf(tt * n); printf(tt n); printf(tt n); printf(tt n); printf(ttnn); printf(tttt 1: 入库管理n); printf(tttt 2: 出库管理n); printf(tttt 3: 退货管理n); printf(tttt 4: 商品统计n); printf(tttt 0: 退出系统n); printf(ntttt输入错误,请重新输入!n); int

5、 Rkjl() /入库信息录入文件 struct in_product pN,s; int i=0,j,n; FILE *pf,*pf1; pf=fopen(入库信息记录.dat,rb+); pf1=fopen(入库信息记录.xls,r+); /printf(入库编号 商品编号 入库商品名 入库数量 入库价格 总价n); for(i=0;fread(&pi,ILEN,1,pf)!=NULL;i+); / printf(%ldt%st%st%dt%dt%dn,pi.num,pi.p_num,pi.name,pi.amount,pi.price,pi.t_price); for(j=0;ji;j+

6、) for(n=0;npn+1.num)/入库编号小的先录入 s=pn;pn=pn+1;pn+1=s;rewind(pf);fseek(pf1,56L,0); for(j=0;ji;j+) fwrite(&pj,ILEN,1,pf); fprintf(pf1,%ldt%st%st%dt%dt%dn,pj.num,pj.p_num,pj.name,pj.amount,pj.price,pj.t_price); fclose(pf); fclose(pf1);return 0;int Ckjl() /出库信息录入文件 struct out_product pN,s; int i,j,n; FILE

7、 *pf,*pf1; pf=fopen(出库信息记录.dat,rb+); pf1=fopen(出库信息记录.xls,r+); /printf(出库编号 商品编号 出库商品名 出库数量 出库价格 总 价n); for(i=0;fread(&pi,OLEN,1,pf)!=NULL;i+); / printf(%ldt%st%st%dt%dt%dn,pi.num,pi.p_num,pi.name,pi.amount,pi.price,pi.t_price); for(j=0;ji;j+) for(n=0;npn+1.num)/出库编号小的先录入 s=pn;pn=pn+1;pn+1=s;rewind(

8、pf);fseek(pf1,56L,0); for(j=0;ji;j+) fwrite(&pj,OLEN,1,pf); fprintf(pf1,%ldt%st%st%dt%dt%dn,pj.num,pj.p_num,pj.name,pj.amount,pj.price,pj.t_price); fclose(pf); fclose(pf1);return 0;int Thjl() /退货信息录入文件 struct quit_product pN,s; int i,j,n; FILE *pf,*pf1; pf=fopen(退货信息记录.dat,rb+); pf1=fopen(退货信息记录.xls,r+); for(i=0;fread(&pi,QLEN,1,pf)!=NULL;i+); for(j=0;ji;j+) for(n=0;npn+1.num)/退货编号小的先录入 s=pn;pn=pn+1;pn+1=s;rewind(pf);fsee

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

当前位置:首页 > 大杂烩/其它

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