1 / 50
文档名称:

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

格式:docx   大小:200KB   页数:50页
下载后只包含 1 个 DOCX 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

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

上传人:非学无以广才 2022/8/3 文件大小:200 KB

下载得到文件列表

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

相关文档

文档介绍

文档介绍: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