📄 scannerdlg.h
字号:
// ScannerDlg.h : header file
//
#if !defined(AFX_SCANNERDLG_H__582AA5D9_D4F2_49A7_9BD2_2370B0F7C6DF__INCLUDED_)
#define AFX_SCANNERDLG_H__582AA5D9_D4F2_49A7_9BD2_2370B0F7C6DF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CScannerDlg dialog
class CScannerDlg : public CDialog
{
// Construction
public:
CScannerDlg(CWnd* pParent = NULL); // standard constructor
public:
int value;
int length;
BOOL ends;
char ch;
bool digit;//标识小数和整数
bool str;//标识字符常量
int point;
int code;
CString strToken;
int PrimaryKey[50];
CString Identifier[50];
CString Const[50];
int tag[50];//标识常量类型,其中0为整数,1为小数,2为字符常量,3为布尔常量
CString Symbol[100];
public:
char GetChar();
void GetBC();
void Concat();
BOOL IsLetter();
BOOL IsDigit();
int Reserve();
void Retract();
int InsertId();
int InsertConst();
int InsertSymbol();
void ShowOut();
// Dialog Data
//{{AFX_DATA(CScannerDlg)
enum { IDD = IDD_SCANNER_DIALOG };
CEdit m_edit_source;
CEdit m_edit_result;
CString m_result;
CString m_source;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CScannerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CScannerDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnScan();
afx_msg void Onclear();
afx_msg void OnCancel();
afx_msg void OnButton3();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SCANNERDLG_H__582AA5D9_D4F2_49A7_9BD2_2370B0F7C6DF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -