error.h

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

H
56
字号
#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 + =
减小字号Ctrl + -
显示快捷键?