secondhandcar.cpp

来自「这是一个简单的 用于标准汽车店的统计管理程序 有多个子程序构成」· C++ 代码 · 共 32 行

CPP
32
字号
/*
Name: CHAI, Wennan
StudentID: 780621
Program: SecondHandCar.cpp
Description:
*/

#include <iostream>
#include <string>
#include "SecondHandCar.h"
 
using namespace std;

SecondHandCar::SecondHandCar(string brand, TDate date, TStatus status, int id, TCarType type)//:TCar(brand,date,status,id,type)
{
    this->brand=brand;
    this->date=date;
    this->status=status;
    this->id=id;
    this->type=type;
}

int SecondHandCar::GetPrice()
{
    int sellprice;
    sellprice=price*0.5-usedtime*12;
    if(sellprice>100) {return sellprice;}
    else return 100;
}


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?