下载此文档

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


文档分类:管理/人力资源 | 页数:约50页 举报非法文档有奖
1/50
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/50 下载此文档
文档列表 文档介绍
C++ 课程设计报告

题 目: 商场营销管理系统——类定义、注册新顾客、商品入库、商品查询
学生姓名: 伍云
学 号:
producetime = producetime1;
price = 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 number1,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; //数量
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, standards1, 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() //记录入库商品总数量函数
{
system("cls");
string no1;string gname1;double price1;int count_total1; string time_in1;double price_add1;char a='y';
ifstream fin("");
if(!fin) {cout<<"此时库存里无商品:\n";exit(0);}
while(a=='y')
{
cout<<"输出所有库存商品基本信息及记录总商品量:"<<endl;
while(fin>>no1>>gname1>>price1>>count_in>>time_in1>>count_total1)
{
cout<<"\t编号:"<<no1<<"||"
<<"\t名称:"<<gname1<<"||"
<<"\t价格:"<<price1<<"||"
<<"\t此商品库存总数量:"<<count_total1<<"||";
price_add1=price1*count_total1;
cout<<"\t此商品库存总价值:"<<price_add1<<endl;
total_pricein=total_pricein+price_add1;
total_in=total_in+count_tot

商品市场营销基础管理系统 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息