?? 算符優(yōu)先文法dlg.h
字號(hào):
// 算符優(yōu)先文法Dlg.h : header file
//
#if !defined(AFX_DLG_H__C7F5021A_E637_442D_A1FC_80A4941475DC__INCLUDED_)
#define AFX_DLG_H__C7F5021A_E637_442D_A1FC_80A4941475DC__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog
#include "CStack.h"
class CMyDlg : public CDialog
{
// Construction
public:
CMyDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMyDlg)
enum { IDD = IDD_MY_DIALOG };
CListCtrl m_list4;
CListCtrl m_list3;
CListCtrl m_list2;
CListCtrl m_list;
CEdit m_con_sentence;
CEdit m_con_grammar;
CString m_grammar;
CString m_sentence;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
void InitVnVt(int);
int InitPt();
void SetFirstVt(int);
void SetLastVt(int);
void InsertFirstOrLast(char,char,CString);
void Create_G_table(int);
int Analyze(int);
bool Guiyue(int,int,int,int);
void Show_list1();
void Show_list2(int);
void Show_list3();
void Show_list4();
void InitListControl();
bool Error(char,char,int);
struct P
{
char pleft;
CString pright;
};
private:
struct P Pt[100];
CString Start;
CString Vn;
CString Vt;
Sstack stack;
bool FlagOk; //是否順利完成規(guī)約的標(biāo)志
CString output[50][6];
char charstack[20];
bool F[100][100];
bool L[100][100];
char G[100][100];
// Generated message map functions
//{{AFX_MSG(CMyDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBianyi();
afx_msg void OnInputDefault();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
#endif // !defined(AFX_DLG_H__C7F5021A_E637_442D_A1FC_80A4941475DC__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -