isexist.cpp

来自「这是一个用VC++编写的银行定期储蓄管理系统」· C++ 代码 · 共 71 行

CPP
71
字号
// ISEXIST.cpp: implementation of the ISEXIST class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "银行系统.h"
#include "ISEXIST.h"

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

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


int ISEXIST::count = 1000;
int ISEXIST::numofclass = 0;

//////////////////////////////////////////////////////////////////////
//构造函数,析构函数
//////////////////////////////////////////////////////////////////////
//——————————————————————————————————
ISEXIST::ISEXIST()
{
	account = ++count;
	numofclass++;
}

//——————————————————————————————————
ISEXIST::ISEXIST(ISEXIST &a)
{
	account = a.account;
	numofclass++;
}

//——————————————————————————————————
ISEXIST::~ISEXIST()
{
	numofclass--;
}

//////////////////////////////////////////////////////////////////////
//链表操作
//////////////////////////////////////////////////////////////////////
//——————————————————————————————————
//如果不写就会有连接错误。
ISEXIST *ISEXIST::Find(long naccount)
{
    return NULL;
}

//////////////////////////////////////////////////////////////////////
//序列化函数
//////////////////////////////////////////////////////////////////////
//——————————————————————————————————
void ISEXIST::Serialize(CArchive &ar)
{
    if(ar.IsStoring())
	{
		ar <<account;
	}
	else
	{
		ar >>account;
	}
}

⌨️ 快捷键说明

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