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

📄 datastructure.cpp

📁 故障诊断工作涉及的领域相当广泛
💻 CPP
字号:
// datastructure.cpp: implementation of the datastructure class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "richtest.h"
#include "datastructure.h"

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

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

datastructure::datastructure()
{
	type=0;//
	line=column=cnt=1;
	bdefault=TRUE;
}

datastructure::~datastructure()
{

}
void datastructure::operator =(datastructure& in)
{	
	cnt=in.cnt;
	line=in.line;
	column=in.column;
}
void datastructure::serialize(CArchive &ar)
{
	if(ar.IsLoading())
	{ar>>type;
	ar>>line;
	ar>>column;
	ar>>cnt;
	}
else
	{ar<<type;
	ar<<line;
	ar<<column;
	ar<<cnt;
	}
}

⌨️ 快捷键说明

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