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

📄 filedlg.h

📁 编译原理习题vc代码
💻 H
字号:
// FileDlg.h : main header file for the FILEDLG application
//

#if !defined(AFX_FILEDLG_H__356B9784_5DBE_11D4_BF5A_005004BE6DF9__INCLUDED_)
#define AFX_FILEDLG_H__356B9784_5DBE_11D4_BF5A_005004BE6DF9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols
#include "DisplayDlg.h"
/////////////////////////////////////////////////////////////////////////////
// CFileDlgApp:
// See FileDlg.cpp for the implementation of this class
//
#define END 456
#define RELOP 1
#define LE 256  //"<="
#define NE 257  //"!="
#define LT 258   //"<"
#define EQ 259   //"="
#define GE 300   //">="
#define GT 301   //">"
#define RESERVED_WORD 2
#define IF 302
#define NUM 3
#define ID  4
#define SPECIAL_WORD  5
#define EQU  303
#define ADD 304
#define MINUS 305
#define MUL  306
#define DIV  307
#define KL   308
#define KR   309


 
class CFileDlgApp : public CWinApp
{
public:

	int findstate();
	int isalpha(int c);
	int isalnum(int c);
	int isdigit(int c);
	int ispecial(char c);
	char nextchar(char *buf,int i);
	CString filename;
	CFileDlgApp();

    int Identify(char *buf);
	int id_num;
	int line_id_num;
	char buf[255];
    int state;
    int start;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFileDlgApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CFileDlgApp)
	afx_msg void OnAppAbout();
	afx_msg void OnFileOpen();
	afx_msg void OnWordAnalysis();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


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

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

#endif // !defined(AFX_FILEDLG_H__356B9784_5DBE_11D4_BF5A_005004BE6DF9__INCLUDED_)

⌨️ 快捷键说明

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