資源簡介
窗口化地顯示矩陣的操作,能隨機或自己設定矩陣

代碼片段和文件信息
//?matrix.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“matrix.h“
#include?“matrixDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMatrixApp
BEGIN_MESSAGE_MAP(CMatrixApp?CWinApp)
//{{AFX_MSG_MAP(CMatrixApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMatrixApp?construction
CMatrixApp::CMatrixApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMatrixApp?object
CMatrixApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMatrixApp?initialization
BOOL?CMatrixApp::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
CMatrixDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????3367936??2009-09-16?01:33??matrix\Debug\matrix.bsc
?????文件?????127037??2009-09-19?19:30??matrix\Debug\matrix.exe
?????文件?????215472??2009-09-19?19:30??matrix\Debug\matrix.ilk
?????文件??????17194??2009-09-19?19:30??matrix\Debug\matrix.obj
?????文件????5503108??2009-09-19?19:30??matrix\Debug\matrix.pch
?????文件?????304128??2009-09-19?19:30??matrix\Debug\matrix.pdb
?????文件???????3648??2009-09-19?19:30??matrix\Debug\matrix.res
?????文件??????????0??2009-09-16?01:33??matrix\Debug\matrix.sbr
?????文件??????90509??2009-09-19?19:30??matrix\Debug\matrixDlg.obj
?????文件??????????0??2009-09-16?01:33??matrix\Debug\matrixDlg.sbr
?????文件??????10294??2009-09-19?19:30??matrix\Debug\NewDialog.obj
?????文件??????????0??2009-09-16?01:33??matrix\Debug\NewDialog.sbr
?????文件?????105517??2009-09-19?19:30??matrix\Debug\StdAfx.obj
?????文件????1369571??2009-09-16?01:33??matrix\Debug\StdAfx.sbr
?????文件?????230400??2010-10-18?21:36??matrix\Debug\vc60.idb
?????文件?????438272??2009-09-19?19:30??matrix\Debug\vc60.pdb
?????文件??????22932??2010-04-07?16:47??matrix\matrix.aps
?????文件???????2683??2010-10-19?22:54??matrix\matrix.clw
?????文件???????2063??2009-09-10?19:20??matrix\matrix.cpp
?????文件???????4351??2009-09-10?19:58??matrix\matrix.dsp
?????文件????????537??2009-09-10?19:58??matrix\matrix.dsw
?????文件???????1324??2009-09-10?19:20??matrix\matrix.h
?????文件?????164864??2010-10-19?23:07??matrix\matrix.ncb
?????文件?????136704??2010-10-19?23:07??matrix\matrix.opt
?????文件????????246??2009-09-19?19:30??matrix\matrix.plg
?????文件???????7999??2009-09-17?11:17??matrix\matrix.rc
?????文件????????533??2009-09-10?19:28??matrix\matrix1.cpp
?????文件???????3146??2009-09-19?19:31??matrix\matrix1.h
?????文件??????11315??2009-09-17?10:27??matrix\matrixDlg.cpp
?????文件???????1904??2009-09-10?21:09??matrix\matrixDlg.h
............此處省略14個文件信息
- 上一篇:編譯原理課程實驗報告詞法分析器及語法分析器
- 下一篇:C++超市管理系統程序
評論
共有 條評論