资源简介
学习vc的一个好例子,可以学习到中国象棋的算法等,详细的源代码程序,外加有注释,可以帮助学习好vc,

代码片段和文件信息
// chess.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “chess.h“
#include “chessDlg.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)
// 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()
/////////////////////////////////////////////////////////////////////////////
// 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()
{
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
CChessDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 656 2008-11-24 18:15 vc编写中国象棋-详细源码+注释\MD5.txt
文件 892 2008-11-27 11:02 vc编写中国象棋-详细源码+注释\教程说明.txt
文件 675 2008-11-22 03:23 vc编写中国象棋-详细源码+注释\文件信息.txt
文件 136394 2010-06-03 08:18 vc编写中国象棋-详细源码+注释\中国象棋\chess.exe
文件 49152 2003-03-10 23:43 vc编写中国象棋-详细源码+注释\中国象棋\ClassXP.dll
文件 111556 2010-07-27 20:21 vc编写中国象棋-详细源码+注释\chess\chess.aps
文件 1270 2010-07-27 20:21 vc编写中国象棋-详细源码+注释\chess\chess.clw
文件 2049 2008-11-21 05:37 vc编写中国象棋-详细源码+注释\chess\chess.cpp
文件 5072 2008-11-22 03:54 vc编写中国象棋-详细源码+注释\chess\chess.dsp
文件 535 2008-11-21 05:37 vc编写中国象棋-详细源码+注释\chess\chess.dsw
文件 1336 2008-11-21 05:50 vc编写中国象棋-详细源码+注释\chess\chess.h
文件 189440 2010-07-27 20:21 vc编写中国象棋-详细源码+注释\chess\chess.ncb
文件 51712 2010-07-27 20:21 vc编写中国象棋-详细源码+注释\chess\chess.opt
文件 2753 2008-12-20 21:10 vc编写中国象棋-详细源码+注释\chess\chess.plg
文件 5319 2008-11-22 03:20 vc编写中国象棋-详细源码+注释\chess\chess.rc
文件 10718 2008-11-22 03:51 vc编写中国象棋-详细源码+注释\chess\chessDlg.cpp
文件 2263 2008-11-22 03:18 vc编写中国象棋-详细源码+注释\chess\chessDlg.h
文件 49152 2003-03-10 23:43 vc编写中国象棋-详细源码+注释\chess\ClassXP.dll
文件 1129 2008-11-22 04:30 vc编写中国象棋-详细源码+注释\chess\define.h
文件 21342 2008-11-22 01:16 vc编写中国象棋-详细源码+注释\chess\Eveluation.cpp
文件 1976 2008-11-21 23:51 vc编写中国象棋-详细源码+注释\chess\Eveluation.h
文件 16423 2008-11-21 10:19 vc编写中国象棋-详细源码+注释\chess\MoveGenerator.cpp
文件 2013 2008-11-21 06:43 vc编写中国象棋-详细源码+注释\chess\MoveGenerator.h
文件 2049 2008-11-21 11:46 vc编写中国象棋-详细源码+注释\chess\NegaMaxEngine.cpp
文件 793 2008-11-21 11:21 vc编写中国象棋-详细源码+注释\chess\NegaMaxEngine.h
文件 1603 2008-11-22 01:55 vc编写中国象棋-详细源码+注释\chess\NewGame.cpp
文件 1632 2008-11-22 01:30 vc编写中国象棋-详细源码+注释\chess\NewGame.h
文件 3561 2008-11-21 05:37 vc编写中国象棋-详细源码+注释\chess\ReadMe.txt
文件 864 2008-11-22 03:19 vc编写中国象棋-详细源码+注释\chess\Resource.h
文件 2421 2008-11-21 12:03 vc编写中国象棋-详细源码+注释\chess\SearchEngine.cpp
............此处省略15个文件信息
- 上一篇:DSP芯片 F28335的以太网调试程序
- 下一篇:各种卡插座 PCB封装
相关资源
- 如何使用VC和OD调试OCX控件
- VC仿Windows记事本源代码
- SpringMVC文件上传与的实现.rar
- Windows异步套接字网络编程
- VC 获得文件属性 获取文件的创建时
- 基于MVC模式的会员管理系统
- silicon lab公司的收音IC SI47XX全套开发工
- 读者写者问题(读者优先,写者优先
- MFC程序-碰撞的小球
- vc 柱形图 CBarChart
- 用vc 写的导线测量,针对刚学测绘的
- 用VC 编写的仿QQ聊天室程序源代码
- 栅栏填充算法源码(VC)
- 简单的房屋租赁系统
- .net网站服装销售系统(MVC)
-
ob
jectARX给Auto CAD加工具条 - blowfish的vc2008工程.rar
- 画图程序MFC/VC/VC CRectTracker 串行化
- capon波束形成算法-VC实现
- 读取串口数据并画实时曲线的VC 程序
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- keil vcom windows 7 64bit 驱动
- vc URL编解码类
- vc编写中国象棋详细源码注释并附有视
- VC 围棋源代码
- 用VC 编写的基于SNMP的路由器拓扑程序
评论
共有 条评论