資源簡介
編譯原理 課程設計 DAG 報告+源碼(C++版,C語言版兩份)

代碼片段和文件信息
//?DAG.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“DAG.h“
#include?“MainFrm.h“
#include?“DAGDoc.h“
#include?“DAGView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDAGApp
BEGIN_MESSAGE_MAP(CDAGApp?CWinApp)
//{{AFX_MSG_MAP(CDAGApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CDAGApp?construction
CDAGApp::CDAGApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDAGApp?object
CDAGApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CDAGApp?initialization
BOOL?CDAGApp::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CDAGDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CDAGView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
}
/////////////////////////////////////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-01-10?16:55??編譯原理\
?????目錄???????????0??2014-01-10?16:52??編譯原理\DAG\
?????文件???????27908??2014-01-09?02:25??編譯原理\DAG\DAG.APS
?????文件????????1884??2014-01-09?19:33??編譯原理\DAG\DAG.clw
?????文件????????4155??2014-01-08?13:06??編譯原理\DAG\DAG.cpp
?????文件????????4492??2014-01-08?13:06??編譯原理\DAG\DAG.dsp
?????文件?????????514??2014-01-08?16:15??編譯原理\DAG\DAG.dsw
?????文件????????1323??2014-01-08?13:06??編譯原理\DAG\DAG.h
?????文件???????82944??2014-01-09?19:33??編譯原理\DAG\DAG.ncb
?????文件???????50688??2014-01-09?19:33??編譯原理\DAG\DAG.opt
?????文件?????????240??2014-01-09?19:31??編譯原理\DAG\DAG.plg
?????文件???????10480??2014-01-09?02:21??編譯原理\DAG\DAG.rc
?????文件????????1682??2014-01-08?13:06??編譯原理\DAG\DAGDoc.cpp
?????文件????????1442??2014-01-08?13:06??編譯原理\DAG\DAGDoc.h
?????文件???????17119??2014-01-09?16:23??編譯原理\DAG\DAGView.cpp
?????文件????????3111??2014-01-09?01:16??編譯原理\DAG\DAGView.h
?????目錄???????????0??2014-01-10?16:52??編譯原理\DAG\Debug\
?????文件??????151606??2014-01-09?16:23??編譯原理\DAG\Debug\DAG.exe
?????文件??????439576??2014-01-09?16:23??編譯原理\DAG\Debug\DAG.ilk
?????文件???????34306??2014-01-09?01:16??編譯原理\DAG\Debug\DAG.obj
?????文件?????5497728??2014-01-08?13:09??編譯原理\DAG\Debug\DAG.pch
?????文件??????566272??2014-01-09?16:23??編譯原理\DAG\Debug\DAG.pdb
?????文件????????6760??2014-01-09?02:21??編譯原理\DAG\Debug\DAG.res
?????文件???????14452??2014-01-08?13:09??編譯原理\DAG\Debug\DAGDoc.obj
?????文件???????97072??2014-01-09?16:23??編譯原理\DAG\Debug\DAGView.obj
?????文件???????19715??2014-01-08?23:51??編譯原理\DAG\Debug\MainFrm.obj
?????文件??????105524??2014-01-08?13:09??編譯原理\DAG\Debug\StdAfx.obj
?????文件??????263168??2014-01-09?19:31??編譯原理\DAG\Debug\vc60.idb
?????文件??????462848??2014-01-09?16:23??編譯原理\DAG\Debug\vc60.pdb
?????文件??????????95??2014-01-09?16:35??編譯原理\DAG\In.txt
?????文件????????2457??2014-01-08?23:51??編譯原理\DAG\MainFrm.cpp
............此處省略12個文件信息
評論
共有 條評論