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

資源簡介

刪除了debug,文件小點,自己運行下實例就好。 運行很簡單,先運行chess服務器實例,點擊聯(lián)機。然后運行客戶端輸入ip,點擊鏈接主機。黑棋由服務器端先下。 各種閃屏等bug都處理掉了,廢了一點力的。。。AI和保存棋局還沒加入,下次我會做個高級點的AI算法一起上傳,這次就先傳網(wǎng)絡對戰(zhàn)的。 10分好少啊,想要20分的(客戶端,服務器分開傳就有20分了,O(∩_∩)O哈哈)想想你們不方便就算了,嘿。。。

資源截圖

代碼片段和文件信息

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

#include?“stdafx.h“
#include?“chess.h“

#include?“MainFrm.h“
#include?“chessDoc.h“
#include?“chessView.h“

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

/////////////////////////////////////////////////////////////////////////////
//?CChessApp

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

/////////////////////////////////////////////////////////////////////////////
//?CChessApp?construction

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

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CChessApp?object

CChessApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CChessApp?initialization

BOOL?CChessApp::InitInstance()
{
if?(!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return?FALSE;
}

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(CChessDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CChessView));
AddDocTemplate(pDocTemplate);

//?Enable?DDE?Execute?open
EnableShellOpen();
RegisterShellFileTypes(TRUE);

//?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?FALS

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

?????文件??????44888??2011-10-25?21:17??五子棋\chess\chess.aps

?????文件???????2654??2011-11-05?18:16??五子棋\chess\chess.clw

?????文件???????4431??2011-10-25?14:50??五子棋\chess\chess.cpp

?????文件???????4596??2011-10-25?14:50??五子棋\chess\chess.dsp

?????文件????????730??2011-11-04?15:37??五子棋\chess\chess.dsw

?????文件???????1345??2011-10-25?14:50??五子棋\chess\chess.h

?????文件?????123904??2011-11-05?19:29??五子棋\chess\chess.ncb

?????文件??????66048??2011-11-05?19:29??五子棋\chess\chess.opt

?????文件????????244??2011-11-05?18:06??五子棋\chess\chess.plg

?????文件???????1321??2011-11-05?19:29??五子棋\chess\chess.positions

?????文件??????12400??2011-10-25?21:17??五子棋\chess\chess.rc

?????文件???????1722??2011-10-25?14:50??五子棋\chess\chessDoc.cpp

?????文件???????1464??2011-10-25?14:50??五子棋\chess\chessDoc.h

?????文件??????13752??2011-11-04?18:14??五子棋\chess\chessView.cpp

?????文件???????2866??2011-11-04?17:27??五子棋\chess\chessView.h

?????文件???????2738??2011-10-25?19:42??五子棋\chess\MainFrm.cpp

?????文件???????1581??2011-10-25?14:50??五子棋\chess\MainFrm.h

?????文件???????4576??2011-10-25?14:50??五子棋\chess\ReadMe.txt

?????文件???????1078??2011-10-25?14:50??五子棋\chess\res\chess.ico

?????文件????????397??2011-10-25?14:50??五子棋\chess\res\chess.rc2

?????文件???????1078??2011-10-25?14:50??五子棋\chess\res\chessDoc.ico

?????文件???????1078??2011-10-25?14:50??五子棋\chess\res\Toolbar.bmp

?????文件????????958??2011-10-25?21:17??五子棋\chess\resource.h

?????文件????????207??2011-10-25?14:50??五子棋\chess\StdAfx.cpp

?????文件???????1102??2011-10-25?14:50??五子棋\chess\StdAfx.h

?????文件??????45336??2011-11-05?18:18??五子棋\chessclient\chessclient.aps

?????文件???????2872??2011-11-05?18:24??五子棋\chessclient\chessclient.clw

?????文件???????4539??2011-10-26?11:48??五子棋\chessclient\chessclient.cpp

?????文件???????4728??2011-10-26?11:48??五子棋\chessclient\chessclient.dsp

?????文件????????724??2011-10-26?11:54??五子棋\chessclient\chessclient.dsw

............此處省略27個文件信息

評論

共有 條評論