Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Windows Develop Other
  • Category : Other
  • Tags :
  • Update : 2012-11-26
  • Size : 1kb
  • Downloaded :0次
  • Author :熊****
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
#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
Packet file list
(Preview for download)
Goods类与成员函数.cpp
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.