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

📄 vehicle.cpp

📁 解VRPTW问题的模拟退火程序
💻 CPP
字号:
// Vehicle.cpp: implementation of the CVehicle class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Vehicle.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CVehicle::CVehicle(double vacuum,UINT firstClient)
{

	this->firstClient=firstClient;
	this->vacuum=vacuum;  
}
CVehicle::CVehicle(const CVehicle &vehicle)
{
	*this=vehicle;
}
void CVehicle::SetVehicle(UINT firstClient,UINT vacuum)
{

	this->firstClient;
	this->vacuum=vacuum;
}
CVehicle::~CVehicle()
{

}
UINT CVehicle::GetFirst()
{
	return firstClient;
}


void CVehicle::SetFirst(UINT first)
{
	this->firstClient=first;

}

void CVehicle::SetVacuum(double vacumm)
{
    this->vacuum=vacumm;
}

double CVehicle::GetVacuum()
{
   return vacuum;
}  

bool CVehicle::operator ==(const CVehicle ve) const
{
	if(this->firstClient==ve.firstClient)
	{	if(this->vacuum==ve.vacuum)
			return true;
	}
		return false;

}

⌨️ 快捷键说明

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