- pic32mx_usb_v1.04 pic单片机USB开发包 包含了所有带USB接口的PIC单片机的源码
- Tetris_acr_lcd 8bit AVR micro processor tetris program running on
- Ainsside_jjvml inside jvm 全部源代码
- Control-Tutorials-for-MATLAB-and-Simulink---Motor this is displane motor dc in the matlab
- jQueryDemo 自己写的一个jquery的demo
- New-Folder-(2) matlab code for image registration for medical images
文件名称:goods
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.08kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
#include <iostream>
#include <string>
using namespace std
class Goods
{public:
Goods(char *GoodsNum,string n,double p,int a)
{
strcpy(GoodsNumber,GoodsNum)
GoodsName=n
GoodsPrice=p
GoodsAmount=a
}//构造函数,商品的编号,名字,价格,数量
~Goods(){}
friend class Manager
int quantity //声明购买数量
static float TotalPrice() //声明所购买商品的总价格
string get_GoodsName() const
double get_GoodsPrice() const
int get_GoodsAmount()
void SetGoodsNumber(char*) //设置编号函数
void SetGoodsName(string) //设置姓名函数
void SetGoodsPrice(double pr) //设置价格函数
void SetGoodsAmount(int am) //设置数量函数
int SetGoodsGuaPeriod(int y,int m,int d){} //设置保质期函数
void PrintGuaPeriod() //输出保质期
private: char GoodsNumber[3]
string GoodsName
double GoodsPrice -#include <iostream>
#include <string>
using namespace std
class Goods
{public:
Goods(char*GoodsNum,string n,double p,int a)
{
strcpy(GoodsNumber,GoodsNum)
GoodsName=n
GoodsPrice=p
GoodsAmount=a
}//构造函数,商品的编号,名字,价格,数量
~Goods(){}
friend class Manager
int quantity //声明购买数量
static float TotalPrice() //声明所购买商品的总价格
string get_GoodsName() const
double get_GoodsPrice() const
int get_GoodsAmount()
void SetGoodsNumber(char*) //设置编号函数
void SetGoodsName(string) //设置姓名函数
void SetGoodsPrice(double pr) //设置价格函数
void SetGoodsAmount(int am) //设置数量函数
int SetGoodsGuaPeriod(int y,int m,int d){} //设置保质期函数
void PrintGuaPeriod() //输出保质期
private: char GoodsNumber[3]
string GoodsName
double GoodsPrice
#include <string>
using namespace std
class Goods
{public:
Goods(char *GoodsNum,string n,double p,int a)
{
strcpy(GoodsNumber,GoodsNum)
GoodsName=n
GoodsPrice=p
GoodsAmount=a
}//构造函数,商品的编号,名字,价格,数量
~Goods(){}
friend class Manager
int quantity //声明购买数量
static float TotalPrice() //声明所购买商品的总价格
string get_GoodsName() const
double get_GoodsPrice() const
int get_GoodsAmount()
void SetGoodsNumber(char*) //设置编号函数
void SetGoodsName(string) //设置姓名函数
void SetGoodsPrice(double pr) //设置价格函数
void SetGoodsAmount(int am) //设置数量函数
int SetGoodsGuaPeriod(int y,int m,int d){} //设置保质期函数
void PrintGuaPeriod() //输出保质期
private: char GoodsNumber[3]
string GoodsName
double GoodsPrice -#include <iostream>
#include <string>
using namespace std
class Goods
{public:
Goods(char*GoodsNum,string n,double p,int a)
{
strcpy(GoodsNumber,GoodsNum)
GoodsName=n
GoodsPrice=p
GoodsAmount=a
}//构造函数,商品的编号,名字,价格,数量
~Goods(){}
friend class Manager
int quantity //声明购买数量
static float TotalPrice() //声明所购买商品的总价格
string get_GoodsName() const
double get_GoodsPrice() const
int get_GoodsAmount()
void SetGoodsNumber(char*) //设置编号函数
void SetGoodsName(string) //设置姓名函数
void SetGoodsPrice(double pr) //设置价格函数
void SetGoodsAmount(int am) //设置数量函数
int SetGoodsGuaPeriod(int y,int m,int d){} //设置保质期函数
void PrintGuaPeriod() //输出保质期
private: char GoodsNumber[3]
string GoodsName
double GoodsPrice
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Goods类与成员函数.cpp
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
