700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > C++面向对象课程设计——4S店管理系统(源代码内附流程图)

C++面向对象课程设计——4S店管理系统(源代码内附流程图)

时间:2018-12-15 23:33:09

相关推荐

C++面向对象课程设计——4S店管理系统(源代码内附流程图)

#include<iostream>

#include<fstream>

#include<map>

#include<vector>

#include<algorithm>

#include<iomanip>

using namespace std;

class Goods{ //商品类

protected:

string Id;

string Name;

string Brand;

double BuyingPrice;

double RetailPrice;

int Stock;

int Sales;

public:

Goods(string id,string n,string b,double bp,double rp,int st=0,int sa=0);

void setBPrice(double bp);

void setRPrice(double rp);

string getId();

string getName();

double getBPrice();

double getRPrice();

int getStock();

int getSales();

void setStock(int s);

void setSales(int s);

virtual void showInfo()=0;

};

Goods::Goods(string id,string n,string b,double bp,double rp,int st,int sa

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。