error.cpp

来自「PL0的编译系统,使用MFC编写界面,采用浮动窗口来仿VC的环境」· C++ 代码 · 共 47 行

CPP
47
字号
// Error.cpp : implementation file
//

#include "stdafx.h"
#include "My1.h"
#include "Error.h"
#include "WordAnalysis.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CError

CError::CError()
{
}
void CError::Add(int err)
{
	if(num<MAX_ERROR_NUM)
		{
		errors[num]=err;
		lines[num++]=mCompiler->mWordAnalysis->GetLine();
		}
}
CError::CError(CCompiler *compiler)
{
	mCompiler	=compiler;
	num		=0;
}
CError::~CError()
{
}


BEGIN_MESSAGE_MAP(CError, CWnd)
	//{{AFX_MSG_MAP(CError)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


/////////////////////////////////////////////////////////////////////////////
// CError message handlers

⌨️ 快捷键说明

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