文件名称:ssd5__adsasdsdexa1
介绍说明--下载内容均来自于网络,请自行研究使用
c++数据结构 ssd5的答案 很有用 保证正确
很有用 我亲自写的-#include "car.h"
Car::Car(string plate) :
license_plate(plate),
moved(0), aisle(-1) {}
Car::Car(string plate, int aisle) :
license_plate(plate),
moved(0), aisle(aisle) {}
int Car::getTimesMoved(void) const {
return moved
}
void Car::setTimesMoved(int m) {
moved = m
}
int Car::getAisle(void) const {
return aisle
}
string Car::getPlate(void) const {
return license_plate
}
bool Car::operator < (const Car& rhs) const {
return this->getPlate() < rhs.getPlate()
}
bool Car::operator == (const Car& rhs) const {
return this->getPlate() == rhs.getPlate()
}
很有用 我亲自写的-#include "car.h"
Car::Car(string plate) :
license_plate(plate),
moved(0), aisle(-1) {}
Car::Car(string plate, int aisle) :
license_plate(plate),
moved(0), aisle(aisle) {}
int Car::getTimesMoved(void) const {
return moved
}
void Car::setTimesMoved(int m) {
moved = m
}
int Car::getAisle(void) const {
return aisle
}
string Car::getPlate(void) const {
return license_plate
}
bool Car::operator < (const Car& rhs) const {
return this->getPlate() < rhs.getPlate()
}
bool Car::operator == (const Car& rhs) const {
return this->getPlate() == rhs.getPlate()
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
啊\car.cpp
..\car.h
..\data.txt
..\exam2.dsp
..\exam2.dsw
..\exam2.ncb
..\exam2.opt
..\exam2.plg
..\main.cpp
..\Debug
啊
..\car.h
..\data.txt
..\exam2.dsp
..\exam2.dsw
..\exam2.ncb
..\exam2.opt
..\exam2.plg
..\main.cpp
..\Debug
啊