lineinfo.cpp

来自「2007高教社杯全国大学生数学建模竞赛题目B题:乘公交」· C++ 代码 · 共 32 行

CPP
32
字号
// LineInfo.cpp: implementation of the CLineInfo class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "B2007.h"
#include "LineInfo.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

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

CLineInfo::CLineInfo()
{
	memset(this,0,sizeof(*this));
	m_pSations = new Station[MAX_STAION];
	int nSize = sizeof(Station)*MAX_STAION;
	memset(m_pSations,0,nSize);
	m_IsCircular = -1;
}

CLineInfo::~CLineInfo()
{
	delete[]m_pSations;
}

⌨️ 快捷键说明

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