-
大小: 6.63MB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-25
- 語(yǔ)言: C/C++
- 標(biāo)簽: 隨機(jī)數(shù)??
資源簡(jiǎn)介
C++ 產(chǎn)生任意分布的隨機(jī)數(shù) 均勻分布 正態(tài)分布

代碼片段和文件信息
//?random.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“random.h“
#include?“randomDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CRandomApp
BEGIN_MESSAGE_MAP(CRandomApp?CWinApp)
//{{AFX_MSG_MAP(CRandomApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CRandomApp?construction
CRandomApp::CRandomApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CRandomApp?object
CRandomApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CRandomApp?initialization
BOOL?CRandomApp::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
CRandomDlg?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í)間???名稱
-----------?---------??----------?-----??----
?????文件???????4350??2008-11-20?10:56??任意分布的隨機(jī)數(shù)的產(chǎn)生\Debug\BuildLog.htm
?????文件???????2048??2008-11-20?10:34??任意分布的隨機(jī)數(shù)的產(chǎn)生\Debug\random.exe.em
?????文件??????27524??2008-11-20?10:34??任意分布的隨機(jī)數(shù)的產(chǎn)生\Debug\random.obj
?????文件???13631488??2008-11-20?10:34??任意分布的隨機(jī)數(shù)的產(chǎn)生\Debug\random.pch
?????文件??????54136??2008-11-20?10:34??任意分布的隨機(jī)數(shù)的產(chǎn)生\Debug\randomDlg.obj
?????文件?????330279??2008-11-20?10:34??任意分布的隨機(jī)數(shù)的產(chǎn)生\Debug\StdAfx.obj
?????文件?????764928??2008-11-20?10:56??任意分布的隨機(jī)數(shù)的產(chǎn)生\Debug\vc80.idb
?????文件?????741376??2008-11-20?10:56??任意分布的隨機(jī)數(shù)的產(chǎn)生\Debug\vc80.pdb
?????文件??????26648??2008-11-20?10:35??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.aps
?????文件???????1233??2005-02-19?21:35??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.clw
?????文件???????2063??2005-02-19?14:52??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.cpp
?????文件???????4278??2005-02-19?23:13??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.dsp
?????文件????????537??2005-02-19?14:52??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.dsw
?????文件???????1324??2005-02-19?14:52??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.h
?????文件???14846976??2008-11-26?11:23??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.ncb
?????文件???????5678??2005-02-19?16:42??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.rc
?????文件????????876??2008-11-26?11:22??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.sln
????..A..H.?????12288??2008-11-26?11:23??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.suo
?????文件???????7683??2008-11-20?10:34??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.vcproj
?????文件???????1411??2008-11-26?11:23??任意分布的隨機(jī)數(shù)的產(chǎn)生\random.vcproj.小佘-PC.小佘.user
?????文件???????6281??2005-02-19?21:55??任意分布的隨機(jī)數(shù)的產(chǎn)生\randomDlg.cpp
?????文件???????1437??2005-02-19?16:37??任意分布的隨機(jī)數(shù)的產(chǎn)生\randomDlg.h
?????文件?????????91??2005-06-16?20:23??任意分布的隨機(jī)數(shù)的產(chǎn)生\ReadMe.txt
?????文件???????1078??2005-02-19?14:52??任意分布的隨機(jī)數(shù)的產(chǎn)生\res\random.ico
?????文件????????398??2005-02-19?14:52??任意分布的隨機(jī)數(shù)的產(chǎn)生\res\random.rc2
?????文件???????3978??2005-02-19?15:07??任意分布的隨機(jī)數(shù)的產(chǎn)生\res\ti
?????文件????????726??2005-02-19?15:07??任意分布的隨機(jī)數(shù)的產(chǎn)生\res\Track.bmp
?????文件????????912??2005-02-19?16:42??任意分布的隨機(jī)數(shù)的產(chǎn)生\Resource.h
?????文件??????16106??2005-01-20?12:17??任意分布的隨機(jī)數(shù)的產(chǎn)生\ScanScope.cpp
?????文件???????2637??2005-01-20?09:34??任意分布的隨機(jī)數(shù)的產(chǎn)生\ScanScope.h
............此處省略10個(gè)文件信息
評(píng)論
共有 條評(píng)論