ImageVerifierCode 换一换
格式:DOCX , 页数:32 ,大小:197.24KB ,
资源ID:8916131      下载积分:10 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/8916131.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(商品市场营销管理系统2.docx)为本站上传会员【xrp****65】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

商品市场营销管理系统2.docx

1、 C++ 课程设计报告 题 目: 商场营销管理系统——类定义、注册新用户、商品入库、商品查询 学生姓名: 伍云 学 号: 200917010224 专业班级: 计科09102班 同组姓名: 廖湘桂 指导教师: 易 明

2、 设计时间: 2010年上学期第1~2周 指导老师意见: 评定成绩: 签名: 日期: 商场营销管理系统大纲 第一章、 系统流程设计图。 第二章、 功能流程设计图。 第三章、 涉及类的定义。 第四章、 模块源代码。 第五章、 运行结果图。 第六章、 小结与参考书籍。 第一章、 系统设计 商场营销管理系统 管理员登陆 货物信息 修改 货物信息查询 货 物 入

3、 库 管理 货物信息删除 新货物入库 货 物 信 息 管 理 货 物 出 库 管理 按编号查询 按 名称查询 按价格高低输出 货物信息统计 查询所有出入库信息 统计货物总价格 统计货物总量 修改商品名称规格单位品牌生产日期价格保质期 已有货物入库 用户信息管理 修改登录密码 第二章、功能流程设计 是否存在此用户? 输入用户名 注册新用户 c 返回用户名输入 N Y 输入密码 注册成功!

4、 图一、用户注册流程图 图2 货物入库流程图 是否新货物? 输入商品各种基本信息 输入要入库数量 输入商品编号 入库开始 结束 N Y 图3 货物查询流程图 选择查询方式 输入查询信息 是否库存商品? N 输出提示库存无此商品。 Y 显示库存商品信息 结束 基础类的定义: #include #include #include #include //

5、setw(),setiosflags(ios::left) using namespace std; #include //getch() int total_in=0; int total_goods=0; int total_user=0; int total_out=0; int user_out=0; double total_pricein=0; double AB_total=0; class in; class out; class goods //商品类 { public: goods *next; string

6、 no; //编号 string gname; //名称 string unit; //单位 string standards; //规格 string brand; //品牌 string producetime; //生产日期 double price; //价格 string EXP;//保质期 void show(); //void showa(goods *p); ///商品类构造函数 goods(string no1,string gname1,stri

7、ng unit1,string standards1,string brand1,string producetime1, double price1,string EXP1) { no = no1; gname = gname1; unit = unit1; standards = standards1; brand = brand1; producetime = producetime1; price =

8、price1; EXP = EXP1; total_goods++; } goods(){} }; class userr//用户类 { public: userr *next; string number; string code; string code_1; string name; string sex; string age; string darpt; string photonumber; string enter1(char p); userr(string num

9、ber1,string code1,string code2,string name1,string sex1,string darpt1,string photonumber1) :number(number1),code(code1),code_1(code2),name(name1),sex(sex1),darpt(darpt1),photonumber(photonumber1){} userr(){} }; class in:virtual public goods //商品入库类 { public: int count_in; //数量

10、 int count_total; double price_add; string time_in; //入库时间 in *next; //指向自身的指针 /////商品入库类构造函数 in(string no1,string gname1,string unit1,string standards1,string brand1,string producetime1, double price1,string EXP1,int count_in1,string time_in1):goods(no1, gname1, unit1, st

11、andards1, brand1, producetime1 , price1,EXP1) { count_in = count_in1; price_add=price*count_in; time_in = time_in1; count_total=count_total+count_in; } in():goods(){}; void show_in(); void showcount_in(); }; void in::showcount_in() //统计入库商品总数量

12、函数 { system("cls"); string no1;string gname1;double price1;int count_total1; string time_in1;double price_add1;char a='y'; ifstream fin("goods_infile.txt"); if(!fin) {cout<<"此时库存里无商品:\n";exit(0);} while(a=='y') { cout<<"输出所有库存商品基本信息及统计总商品量:"<>no1>>gname1>>pric

13、e1>>count_in>>time_in1>>count_total1) { cout<<"\t编号:"<

14、l_in=total_in+count_total1; } fin.close(); cout<<"\t\t所有库存商品总数量:"<>a; } return; } class out:virtual public goods //商品出库类 { public: int count_out;//数量 double price_out; double price_a

15、ddout; double AB; //static double AB_total; out *next; //指向自身的指针 string time_out; //出库时间 /////商品出库类构造函数 out(string no1,string gname1,string unit1,string standards1,string brand1,string producetime1, double price1,string EXP1,int count_out1,string time_out1,double price_out

16、1):goods(no1, gname1, unit1, standards1, brand1, producetime1 , price1,EXP1) { price_out=price_out1; count_out = count_out1; time_out = time_out1; price_addout=count_out*price_out; AB=price_addout-count_out*price; //AB_total=AB_total+AB; } out(){} void show_out();

17、 void showgood_out(); }; void out::showgood_out() { system("cls"); string no1,gname1,time_out1,time_in1;double price1,price_out1,AB1;int count_out1;char a='y'; ifstream fin("goods_outfile.txt"); if(!fin) {cout<<"此时无出库记录:\n";exit(0);} while(a=='y') { cout<<"输出所有出库商品基本信息及统计出库商品所获得

18、的总利润:"<>no1>>gname1>>price1>>price_out1>>count_out1>>time_out1) { cout<<"编号:"<

19、cout<<"利润:"<>a; } return; } class manager:public in,public out,public userr { public: int first_face(); //界面 void choose_face1(); //界面 void choose_face2(); /

20、/界面 void choose_face3(); //界面 int admin_face(); //首页 int common_face(); //界面 void goods_in(); //商品添加函数 void add_goodsin(); //添加入库商品函数 void goods_in1(); //已有商品入库 void goods_out(); //出库函数 string enter(char p); void m_code(); //修改密码函数 void user_sele

21、ct(); void admin_user(); void select_user(); void select(); //查询 void select_no(); //按编号查询 void select_gname(); //按名称查询 void select_all(); //查询所有信息 void select_out(); //查询出库信息 void modify(); //修改页面函数 void select_price(); //按价格排序函数 void add_

22、price(); //统计库存商品总价格 void add_count(); //统计库存商品总量 int pass();//密码登录函数 int pass1(); void add_userr(); void m_gname(); //修改商品名称 void m_standards(); //修改商品规格 void m_unit(); //修改商品单位 void m_brand(); //修改商品品牌 void m_producetime(); //修改商品生产日期 voi

23、d m_EXP(); //修改商品保质期 void m_price(); //修改商品价格 void list_in(); //商品入库从文件读数据到内存生成链表 void list_out(); //商品出库从文件读数据到内存生成链表 void write(); //将链表写入文件 manager(string no1,string gname1,string unit1,string standards1,string brand1,string producetime1,double pric

24、e1,string EXP1,int count_in1,string time_in1,int count_out1,string time_out1,double price_out1):goods(no1, gname1, unit1, standards1, brand1, producetime1 , price1,EXP1),in(no1, gname1, unit1, standards1, brand1,producetime1 , price1,EXP1,count_in1,time_in1),out(no1, gname1, unit1, standards1, brand

25、1, producetime1 , price1,EXP1,count_out1,time_out1,price_out1) {} manager(){} }; //1. 系统运行时的界面函数 int manager::first_face() //登陆界面 { char choose[2]; int cn = 1; system("cls"); cout<

26、录系统---- ◆" <

27、>choose; cn = atoi(choose); if(cn<1||cn>4) cout<<"输入错误,请重新输入:(1-4) "; else break; } return cn; } string manager::enter(char pwch='*') //密码 { const int

28、length = 18; //最大密码长度=18 char pass[length] = {0}; for(int i=0;i

29、er1,code1,code2, name1,sex1,age1,darpt1,photonumber1; char a='y'; while(a=='y'||a=='Y') { system("cls"); ofstream fout_user("userfile.txt",ios::app); cout<

30、户注册系统---- ◆" <>number1; cout<

31、 " <>name1; cout<

32、别:";cin>>sex1; cout<>age1; cout<>darpt1; cout<

33、n>>photonumber1; cout<

34、 <

35、out("totalfile.txt",ios::out||ios::app); fin>>total_user>>total_goods>>total_in>>total_out; fin.close(); total_user++; fout<<'\t'<>a; } } int manager::admin_fac

36、e() //管理员界面 { system("cls"); char choose[2]; int cn = 0; cout<

37、l <<"\t\t◆ 2. 商品出售管理 ◆" <

38、<"\t\t◆ 6. 返回 ◆" <>choose; cn = atoi(choose); if(cn<1||cn>6) cout<

39、cn); } void manager::choose_face2() //选择界面 { while(1) { switch(admin_face()) { case 1: choose_face1(); break; case 2: goods_out(); break; case 3: select(); break; case 4: modify(); break; case 5: admin_user(); break; case 6: return;

40、 } } } void manager::admin_user() { system("cls"); char choose[2]; int cn = 0; cout<

41、 ◆" <

42、in>>choose; cn = atoi(choose); if(cn<1||cn>3) cout<

43、arpt1,photonumber1;char a='y'; ifstream fin("userfile.txt"); if(!fin) { cout<<"此时无用户:"<>number1>>code1>>name1>>sex1>>age1>>darpt1>>photonumber1) { cout<<"账号:"<

44、<<"||" <<"姓名:"<>a; } } void manager::choose_face1() //选择界

45、面 { int cn = 0; char choose[3]; while (1) { system("cls"); cout << endl << endl; cout << "\t======================================" << endl << "\t|" << endl << "\t| -------商品储存管理------- |" << endl << "\t|" << endl << "\t|

46、 1. 新商品添加 |"<< endl << "\t|" << endl << "\t| 2. 已有入库商品 |"<< endl << "\t|" << endl << "\t| 3. 添加入库商品 |"<< endl << "\t|" << endl << "\t| 4. 返回 |"<< endl << "\

47、t|" <>choose; cn = atoi(choose); if(cn<1||cn>4) cout<

48、in(); break; case 2: goods_in1(); break; case 3: add_goodsin(); case 4: return; } } } void manager::goods_in()//添加新商品函数 { system("cls"); bool flag=false; string no1,gname1,unit1,standards1,brand1,producetime1,EXP1,no2; double price1; char a='y';

49、string b="yes"; while(a=='y') { system("cls"); ifstream fin("goodsfile.txt"); ofstream fout("goodsfile.txt",ios::app); cout<<"请输入新商品信息:"<>no1; while(fin>>no2>>gname1>>unit1>>standards1>>brand1>>producetime1>>price1>>EXP1) { if(no1==no2)

50、 {cout<<"该商品已存在请重新输入:";goto flag1;} } cout<<"名称:";cin>>gname1; cout<<"单位:";cin>>unit1; cout<<"规格:";cin>>standards1; cout<<"品牌:";cin>>brand1; cout<<"生产日期:";cin>>producetime1; cout<<"价格:";cin>>price1; cout<<"保质期:";cin>>EXP1; fout<

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服