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

📄 error.h

📁 PL0的编译系统,使用MFC编写界面,采用浮动窗口来仿VC的环境
💻 H
字号:
#if !defined(AFX_ERROR_H__77023AE8_7273_4CE7_A3A5_CF16472EA9CB__INCLUDED_)
#define AFX_ERROR_H__77023AE8_7273_4CE7_A3A5_CF16472EA9CB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Error.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CError window
#include "Compiler.h"

#define MAX_ERROR_NUM	40

class CError : public CWnd
{
// Construction
public:
	CError();
	CError(CCompiler *);

// Attributes
public:
	CCompiler	*mCompiler;
	int		num;
	char		errors[MAX_ERROR_NUM];
	int		lines[MAX_ERROR_NUM];
// Operations
public:
	void Add(int err);
	int Number() {return num;}
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CError)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CError();

	// Generated message map functions
protected:
	//{{AFX_MSG(CError)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ERROR_H__77023AE8_7273_4CE7_A3A5_CF16472EA9CB__INCLUDED_)

⌨️ 快捷键说明

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