服装销售管理服装销售系统Word格式文档下载.docx

上传人:b****1 文档编号:3419642 上传时间:2023-05-01 格式:DOCX 页数:34 大小:743.38KB
下载 相关 举报
服装销售管理服装销售系统Word格式文档下载.docx_第1页
第1页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第2页
第2页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第3页
第3页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第4页
第4页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第5页
第5页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第6页
第6页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第7页
第7页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第8页
第8页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第9页
第9页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第10页
第10页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第11页
第11页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第12页
第12页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第13页
第13页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第14页
第14页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第15页
第15页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第16页
第16页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第17页
第17页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第18页
第18页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第19页
第19页 / 共34页
服装销售管理服装销售系统Word格式文档下载.docx_第20页
第20页 / 共34页
亲,该文档总共34页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

服装销售管理服装销售系统Word格式文档下载.docx

《服装销售管理服装销售系统Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《服装销售管理服装销售系统Word格式文档下载.docx(34页珍藏版)》请在冰点文库上搜索。

服装销售管理服装销售系统Word格式文档下载.docx

店长的名字及密码以文本文件的方式存于shop文件中。

3.功能模块图

4.数据结构设计

结构体:

N

Y

5.算法设计

(1)主函数的流程图

(2)店长模块中登录功能的流程图

(3)店长模块的查看日(月)报表功能流程图

(4)店长模块的商品(储备)信息修改功能

(5)店长模块的注销功能流程图

(5)店长模块的商品(储备)信息统计功能流程图

(7)店长模块的销售量报表查看功能流程图

(8)店长模块的营业员业绩查看功能流程图

(9)店长模块的主函数流程图

6.程序代码

#include<

stdio.h>

string.h>

malloc.h>

stdlib.h>

intk=0;

/*********************主函数***********************/

voidshop();

voidshop2();

voidmenu()

{intn,w;

do

{

puts("

\t\t***********************************************\n"

);

\t\t+1.店长+\n"

\t\t+2.退出+\n"

printf("

\n\n\t\tChoiceyournumber(1-2):

[]\b\b"

scanf("

%d"

&

n);

if(n<

1||n>

2)w=1;

elsew=0;

}while(w==1);

switch(n)

case1:

shop();

break;

case2:

exit(0);

}

main()

{

menu();

/************************店长模块**************************/

/***********登陆**************/

voidshop_login(charname[],int*in)

{

charpass[100],name2[100],pass2[100];

if(*in==1)printf("

你已经登陆!

\n"

else

请输入用户名,密码:

"

%s%s"

name,pass);

FILE*p;

intx=0;

p=fopen("

shop.txt"

"

r"

while(!

feof(p))

fscanf(p,"

name2,pass2);

if(strcmp(name,name2)==0)

x=1;

if(strcmp(pass,pass2)==0)x=2;

fclose(p);

if(x==0)printf("

该用户名不存在!

elseif(x==1)printf("

密码错误!

elseif(x==2)

登陆成功!

*in=1;

}

shop2();

pressanykeytoback.......\n"

getchar();

}

/**********注销*************/

voidshop_logout(int*in)

{if(*in==0)printf("

你没有登陆。

不需要注销!

elseif(*in==1)

{*in=0;

注销成功!

pressanykeytoback........\n"

getchar();

shop2();

/**************密码、信息修改****************/

voidshop_change(charname1[],int*in)

你没有登陆,请首先登陆\n"

{typedefstructsh

{charname[10];

charpassword[100];

structsh*next;

}SHOP;

SHOP*head,*a,*b;

head=(SHOP*)malloc(sizeof(SHOP));

a=head;

{b=(SHOP*)malloc(sizeof(SHOP));

b->

name,b->

password);

a->

next=b;

a=a->

next;

next=NULL;

a=head->

while(a!

=NULL)

if(strcmp(a->

name,name1)==0)

请输入修改后的店长姓名和密码:

a->

name,a->

break;

w"

while(a->

next!

fprintf(p,"

%s%s\n"

修改成功!

free(head);

/***********商品信息修改************/

voidshop_goodschange()

{typedefstructg

charname[10];

doubleprice;

longnum;

structg*next;

}GOODS;

GOODS*head,*a,*b;

charna[10];

intk=0;

head=(GOODS*)malloc(sizeof(GOODS));

goods.txt"

{b=(GOODS*)malloc(sizeof(GOODS));

%s%lf%d"

name,&

b->

price,&

num);

请输入要修改的货物的名称:

%s"

na);

{if(strcmp(a->

name,na)==0)

请输入新的货物名称,价格,数量:

a->

k=1;

if(k==1)

{p=fopen("

%s%.2lf%d\n"

price,a->

elseprintf("

该货物不存在!

/***********商品信息统计************/

voidshop_goodscount()

intn=0;

floatk;

intnum;

物品价格数量\n"

%s%f%d"

name,&

k,&

if(!

feof(p)){printf("

%s%.2f%d\n"

name,k,num);

n++;

Thereare%dkindsofgoods.\n"

n);

/*************察看日报表************/

voiddaysells()

chardate2[10];

intk=0,n;

charname[10],price[10],seller[10],date[10];

请输入要查询的年月日YYYYMMDD:

date2);

sells.txt"

货物名价格售货员日期数量\n"

%s%s%s%s%d"

name,price,seller,date,&

if(strcmp(date,date2)==0&

&

!

{printf("

%s%s%s%s%d\n"

name,price,seller,date,n);

k+=n;

Thereare%dsoldon%s.\n"

k,date2);

/************察看月报表*************/

voidmonthsells()

intn=0,m;

intk,i;

请输入要查询的年月YYYYMM:

m);

for(i=0;

i<

6;

i++)

if(date[i]!

=date2[i])

k=0;

if(k==1&

name,price,seller,date,m);

n+=m;

Thereare%dsoldin%s.\n"

n,date2);

/*************察看销售量报表************/

voidgoodssells()

intn;

charname[100],price[100],seller[100],date[10];

feof(p))printf("

/***********察看营业员业绩表**********/

voidpepsells()

charseller2[10];

请输入要查询的售货员姓名:

seller2);

if(strcmp(seller,seller2)==0&

{printf("

Thereare%dsoldbythe%s.\n"

k,seller2);

/***********商品储备信息浏览************/

voidshop_goodsbrowse()

/***********商品储备信息修改************/

voidshop_goods_change()

typedefstructg

b=(GOODS*)malloc(sizeof(GOODS));

/********************店长模块主函数********************/

voidshop()

charname[100];

intn,in=0,w;

***********************************************\n"

1,登陆\n"

2,注销\n"

3,自身信息,密码修改\n"

4,商品信息修改\n"

5,商品信息统计\n"

6,察看日报表\n"

7,察看月报表\n"

8,察看商品销售量报表\n"

9,察看营业员业绩报表\n"

10,浏览商品储备信息\n"

11,修改商品储备信息\n"

12,返回上一菜单\n"

printf("

Choiceyournumber(1-12)[]\b\b\b"

if(n>

12||n<

1){printf("

\n输入错误!

请重新输入:

w=1;

}while(w);

if(n==12)menu();

shop_login(name,&

in);

shop_logout(&

case3:

shop_change(name,&

case4:

if(in==1)shop_goodschange();

请先登陆\n"

case5:

shop_goodscount();

case6:

daysells();

case7:

monthsells();

case8:

goodssells();

case9:

pepsells();

case10:

shop_goodsbrowse();

case11:

shop_goods_change();

case12:

menu();

}

/********************店长模块第二主函数********************/

voidshop2()

intn,in=1,w;

*******************

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 农林牧渔 > 林学

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

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