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

📄 smartcdoc.h

📁 词法分析程序
💻 H
字号:
// SmartCDoc.h : interface of the CSmartCDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SMARTCDOC_H__1FCAE714_81EB_4CB5_9393_02A7E8F313C6__INCLUDED_)
#define AFX_SMARTCDOC_H__1FCAE714_81EB_4CB5_9393_02A7E8F313C6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Node.h"

class CSmartCDoc : public CDocument
{
protected: // create from serialization only
	CSmartCDoc();
	DECLARE_DYNCREATE(CSmartCDoc)

// Attributes
public:
//	POSITION curposition;
//	CTypedPtrList <CPtrList,char*> m_list;
	///以下都是全局变量
	//记录输出信息
	Node outputfront;//这里存结果输出信息
	Node errorfront;//这里存错误输出信息
	//以上变量在各自view里初始化
	int output_linenum;//记录输出窗口行数
	int error_linenum;//记录错误窗口行数
	int error_charnum;//记录错误信息一行中所有最大字符数
	void insertline(int whichview,char* string);
	void freenode(int whichview);
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSmartCDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CSmartCDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSmartCDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_SMARTCDOC_H__1FCAE714_81EB_4CB5_9393_02A7E8F313C6__INCLUDED_)

⌨️ 快捷键说明

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