line.cpp

来自「本软件为车站售票服务,能够提供查询班次,预定座位,取消预定等功能」· C++ 代码 · 共 48 行

CPP
48
字号
// Line.cpp: implementation of the Line class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "System.h"
#include "Line.h"
#include "Busline.h"
#include<afxtempl.h>
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(Line,CObject,0)
Line::Line()
{
    Passengerseat=0;
}

Line::~Line()
{

}
void Serialize(CArchive &Ar)
{
	if(Ar.IsLoading())
	{
#ifdef _DEBUG
		afxDump << "Enter Line Archive Loading by Dump!" << "\n";
#endif
		Ar>>PassengerID;
		Ar>>Passengername;
		Ar>>Passengerseat;
	}
	else
	{
		Ar<<PassengerID;
		Ar<<Passengername;
		Ar<<Passengerseat;
	}
}
		

⌨️ 快捷键说明

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