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

📄 car.cpp

📁 利用栈知识来模拟停车场系统
💻 CPP
字号:
#include "Car.h"
string Car::getLicense() const
{
	return license;
}
int Car::getMovedTimes() const
{
	return movedTimes;
}
void Car::movedTimesIncrease()
{
	movedTimes+=1;
}

ostream &operator<<(ostream &stream,Car &car)
{
	stream<<car.license<<" was moved "<<car.movedTimes<<" times while it was here"<<endl;
	return stream;
}

⌨️ 快捷键说明

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