欢迎来到冰点文库! | 帮助中心 分享价值,成长自我!
冰点文库
全部分类
  • 临时分类>
  • IT计算机>
  • 经管营销>
  • 医药卫生>
  • 自然科学>
  • 农林牧渔>
  • 人文社科>
  • 工程科技>
  • PPT模板>
  • 求职职场>
  • 解决方案>
  • 总结汇报>
  • ImageVerifierCode 换一换
    首页 冰点文库 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    超市仓库管理系统程序doc.docx

    • 资源ID:1131167       资源大小:24.65KB        全文页数:57页
    • 资源格式: DOCX        下载积分:3金币
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    二维码
    微信扫一扫登录
    下载资源需要3金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    超市仓库管理系统程序doc.docx

    1、超市仓库管理系统程序doc超市仓库管理系统程序如下:#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=NULL;

    2、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); printf(

    3、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); printf

    4、(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 Rk

    5、jl() /入库信息录入文件 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+) f

    6、or(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(退货信息记录.

    9、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); fseek(pf1,56L,0); for(j=0;jp_num); printf(n商品名:); scanf(%s,&p1-name); printf(n型号/规格:); scanf(%s,&p1-spec); printf(n商品数量:); scanf(%d,&p1-amount); printf(n进货价:); scanf(%d,&p1-p

    10、rice); printf(n销售价:); scanf(%d,&p1-s_price); fprintf(pf,%st%st%st%dt%dt%dn,p1-p_num,p1-name,p1-spec,p1-amount,p1-price,p1-s_price); fclose(pf); head=p1; head-next=NULL; return 0; while(p-next!=NULL)/把指针移到链表末端,在链表末端插入数据 p=p-next; p-next=p1; printf(n下列数据将录入商品信息记录文件中!n); printf(n商品编号:); scanf(%s,&p1-p_

    11、num); printf(n商品名:); scanf(%s,&p1-name); printf(n型号/规格:); scanf(%s,&p1-spec); printf(n商品数量:); scanf(%d,&p1-amount); printf(n进货价:); scanf(%d,&p1-price); printf(n销售价:); scanf(%d,&p1-s_price); fprintf(pf,%st%st%st%dt%dt%dn,p1-p_num,p1-name,p1-spec,p1-amount,p1-price,p1-s_price); fclose(pf); p1-next=NUL

    12、L; return 0; int in_insert() /添加入库数据 struct in_product *p1,*p2; int n=0; char c5; FILE *pf; system(cls); pf=fopen(入库信息记录.dat,ab+); p1=p2=(struct in_product *)malloc(ILEN); printf(ttt*输入入库商品信息*n); printf(n下列数据将录入入库信息记录文件中!n); printf(n入库编号:); scanf(%ld,&p1-num); printf(n商品编号:); scanf(%s,&p1-p_num); pr

    13、intf(n入库商品名:); scanf(%s,&p1-name); printf(n入库数量:); scanf(%d,&p1-amount); printf(n入库价格:); scanf(%d,&p1-price); p1-t_price=p1-amount*p1-price; printf(n总价:); printf(%dn,p1-t_price); fwrite(p1,ILEN,1,pf); insert_product(); ihead=NULL; while(1) n=n+1; if(n=1) ihead=p1; else p2-next=p1; p2=p1; p1=(struct

    14、in_product *)malloc(ILEN); while(1) printf(n退出输入请按Y/y键,任意键继续:); scanf(%s,c); if(strcmp(c,y)=0|strcmp(c,Y)=0) fclose(pf); p2-next=NULL; return 0; else break; printf(n下列数据将录入入库信息记录文件中!n); printf(n入库编号:); scanf(%ld,&p1-num); printf(n商品编号:); scanf(%s,&p1-p_num); printf(n入库商品名:); scanf(%s,&p1-name); prin

    15、tf(n入库数量:); scanf(%d,&p1-amount); printf(n入库价格:); scanf(%d,&p1-price); p1-t_price=p1-amount*p1-price; printf(n总价:); printf(%dn,p1-t_price); fwrite(p1,ILEN,1,pf); insert_product(); fclose(pf); p2-next=NULL; return 0; int in_modify() /修改入库数据 system(cls); long m_num; FILE *fp,*fp1; int i,j,n; int t=3;

    16、struct in_product xgN; fp=fopen(入库信息记录.dat,rb+); fp1=fopen(入库信息记录.xls,r+); printf(入库编号 商品编号 入库商品名 入库数量 入库价格 总 价n); printf(-n); for(i=0;fread(&xgi,ILEN,1,fp)!=NULL;i+) printf( %-8ld %-8s %-10s %-8d %-8d %-8dn, xgi.num,xgi.p_num,xgi.name,xgi.amount,xgi.price,xgi.t_price); printf(-n); printf(输入要修改的商品的入

    17、库编号:);IXG: scanf(%ld,&m_num); j=0; while(ji) if(xgj.num=m_num) printf(ttt输入新的入库商品信息!n); printf(n商品编号:); scanf(%s,&xgj.p_num); printf(n入库商品名:); scanf(%s,&xgj.name); printf(n入库数量:); scanf(%d,&xgj.amount); printf(n入库价格:); scanf(%d,&xgj.price); xgj.t_price=xgj.amount*xgj.price; printf(n总价:); printf(%dn,

    18、xgj.t_price); printf(ttt商品信息修改成功!n); printf(入库编号 商品编号 入库商品名 入库数量 入库价格 总 价n); printf( %-8ld %-8s %-10s %-8d %-8d %-8dn, xgj.num,xgj.p_num,xgj.name,xgj.amount,xgj.price,xgj.t_price); rewind(fp); fseek(fp1,56L,0); for(n=0;ni;n+) fwrite(&xgn,ILEN,1,fp); fprintf(fp1,%ldt%st%st%dt%dt%dn,xgn.num,xgn.p_num,

    19、xgn.name,xgn.amount,xgn.price,xgn.t_price); fclose(fp); fclose(fp1); printf(按回车键退回上一级菜单.); getchar(); getchar(); return 0; j+; t-; if(t=0) return 0; printf(n没有找到该入库编号,请重新输入,还有%d次机会:,t); goto IXG;int in_select() /查询入库数据 system(cls); FILE *fp; int i,j; int t=3; long s_num; struct in_product cxN; if(fp

    20、=fopen(入库信息记录.dat,rb)=NULL) printf(can not open filen); exit(0); printf(ttt-n); printf(ttt入库货物统计如下n); printf(ttt-nn); printf(入库编号 商品编号 入库商品名 入库数量 入库价格 总 价n); printf(-n); for(i=0;fread(&cxi,ILEN,1,fp)!=NULL;i+) printf( %-8ld %-8s %-10s %-8d %-8d %-8dn, cxi.num,cxi.p_num,cxi.name,cxi.amount,cxi.price,cxi.t_price); printf(-n); fclose(fp); printf(输入要查询的入库编号:); ICX:scanf(%ld,&s_num); j=0; while(ji) if(cxj.num=s_num) printf(n查询结果如下:nn); printf(入库编号 商品编号 入库商品名 入库数量 入库价格 总 价n); printf( %-8ld %-8s %-10s %-8d %-8d %-8dn, cxj.num,cxj.p_num,cxj.name,cxj.amount,cxj.price,cxj.t_price); printf


    注意事项

    本文(超市仓库管理系统程序doc.docx)为本站会员主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2023 冰点文库 网站版权所有

    经营许可证编号:鄂ICP备19020893号-2


    收起
    展开