-
大小: 31.18 KB文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2024-09-21
- 語言: 其他
- 標(biāo)簽:
資源簡介
編譯原理的課程設(shè)計(jì):詞法分析器,識(shí)別關(guān)鍵字、常數(shù)和符號(hào)
代碼片段和文件信息
//?Scanner.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Scanner.h“
#include?“ScannerDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CScannerApp
BEGIN_MESSAGE_MAP(CScannerApp?CWinApp)
//{{AFX_MSG_MAP(CScannerApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CScannerApp?construction
CScannerApp::CScannerApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CScannerApp?object
CScannerApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CScannerApp?initialization
BOOL?CScannerApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CScannerDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄??????????0??2005-10-29?09:04??Scanner
?????文件???????3597??2005-06-13?10:03??Scanner\ReadMe.txt
?????文件????????777??2005-06-13?10:03??Scanner\Resource.h
?????文件???????1218??2005-09-12?16:25??Scanner\Scanner.clw
?????文件???????2077??2005-06-13?10:04??Scanner\Scanner.cpp
?????文件???????4309??2005-06-13?10:04??Scanner\Scanner.dsp
?????文件????????520??2005-06-13?10:04??Scanner\Scanner.dsw
?????文件???????1335??2005-06-13?10:04??Scanner\Scanner.h
?????文件??????66560??2005-09-12?16:25??Scanner\Scanner.ncb
?????文件???????1711??2005-09-12?16:25??Scanner\Scanner.plg
?????文件???????7870??2005-06-13?10:04??Scanner\ScannerDlg.cpp
?????文件???????1836??2005-06-13?10:04??Scanner\ScannerDlg.h
?????文件????????209??2005-06-13?10:04??Scanner\StdAfx.cpp
?????文件???????1054??2005-06-13?10:04??Scanner\StdAfx.h
?????文件???????2612??2005-06-13?10:04??Scanner\Vocabulary.cpp
?????文件????????588??2005-06-13?10:04??Scanner\Vocabulary.h
?????文件??????35780??2005-09-12?16:24??Scanner\Scanner.aps
?????文件???????5600??2005-09-12?16:24??Scanner\Scanner.rc
?????文件??????49664??2005-09-12?16:25??Scanner\Scanner.opt
?????目錄??????????0??2005-10-29?09:04??Scanner\res
?????文件???????1078??2005-06-13?10:04??Scanner\res\Scanner.ico
?????文件????????399??2005-06-13?10:04??Scanner\res\Scanner.rc2
-----------?---------??----------?-----??----
???????????????188794????????????????????22
- 上一篇:基于8051單片機(jī)的紅外接收程序
- 下一篇:傻瓜式的圖片去水印下載
評論
共有 條評論