error.cpp

来自「是银行atm机的基本功能实现」· C++ 代码 · 共 34 行

CPP
34
字号
// Error.cpp: implementation of the Error class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Error.h"
#include "string.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
//int Error::NOERROR;		//没有错误

char Error::m_strErrorMsg [ERROR_MAX_WORD];
Error::Error()
{
	m_strErrorMsg[0]=0;
}

Error::~Error()
{

}

void Error::SetLastError(char *pMsg)
{
	strcpy(m_strErrorMsg,pMsg);
}

char * Error::GetLastError()
{
	return m_strErrorMsg;
}

⌨️ 快捷键说明

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