⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tcar.cpp~

📁 这是一个简单的 用于标准汽车店的统计管理程序 有多个子程序构成
💻 CPP~
字号:
/*
Name: CHAI, Wennan
StudentID: 780621
Program: TCar.cpp
Description:
*/

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

void TCar::SetStatus(TStatus status)
{
    this->status=status;
}
void TCar::SetPrice(int pr)
{
    price=pr;
}
void TCar::SetUsedTime(int months)
{
    usedtime=months;
}

string TCar::GetBrand()
{
    return   brand;
}
int TCar::GetID()
{
    return id;
}
int  TCar::GetPrice()
{
    return price;
}
TStatus TCar::GetStatus()
{
    return status;
}
TDate  TCar::GetDate()
{
    return date;
}
TCarType  TCar::GetType()
{
    return type;
}
int  TCar::GetUsedTime()
{
    return usedtime;
}

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

TCar::~TCar()
{
    //nothing;
}


⌨️ 快捷键说明

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