91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

c++編寫的十字路口交通燈,紅燈亮時車輛停止,綠燈亮則通行,相交的哪條路則相反

資源截圖

代碼片段和文件信息

//?33.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“33.h“
#include?“33Dlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CMy33App

BEGIN_MESSAGE_MAP(CMy33App?CWinApp)
//{{AFX_MSG_MAP(CMy33App)
//?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()

/////////////////////////////////////////////////////////////////////////////
//?CMy33App?construction

CMy33App::CMy33App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy33App?object

CMy33App?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CMy33App?initialization

BOOL?CMy33App::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

CMy33Dlg?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;
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????20476??2010-12-21?22:42??交通燈\33.aps

?????文件???????1063??2010-12-21?22:43??交通燈\33.clw

?????文件???????2029??2010-01-01?19:04??交通燈\33.cpp

?????文件???????4087??2010-01-01?19:04??交通燈\33.dsp

?????文件???????1290??2010-01-01?19:04??交通燈\33.h

?????文件?????123904??2010-12-21?22:49??交通燈\33.ncb

?????文件???????5145??2010-01-04?00:10??交通燈\33.rc

?????文件??????13545??2010-01-04?20:51??交通燈\33Dlg.cpp

?????文件???????1376??2010-01-04?00:07??交通燈\33Dlg.h

?????文件???????3513??2010-01-01?19:04??交通燈\ReadMe.txt

?????文件???????1078??2010-01-01?19:04??交通燈\res\33.ico

?????文件????????394??2010-01-01?19:04??交通燈\res\33.rc2

?????文件????????680??2010-01-02?10:27??交通燈\resource.h

?????文件????????204??2010-01-01?19:04??交通燈\StdAfx.cpp

?????文件???????1054??2010-01-01?19:04??交通燈\StdAfx.h

?????目錄??????????0??2010-12-21?23:10??交通燈\res

?????目錄??????????0??2010-12-21?23:10??交通燈

-----------?---------??----------?-----??----

???????????????179838????????????????????17


評論

共有 條評論