资源简介
使用C++编写的五子棋程序,算法用的是alpha-beta剪枝,用MFC的框架

代码片段和文件信息
// fir.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “fir.h“
#include “MainFrm.h“
#include “firDoc.h“
#include “firView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFirApp
BEGIN_MESSAGE_MAP(CFirApp CWinApp)
//{{AFX_MSG_MAP(CFirApp)
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)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFirApp construction
CFirApp::CFirApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CFirApp object
CFirApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CFirApp initialization
BOOL CFirApp::InitInstance()
{
// 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(1); // 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(CFirDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CFirView));
AddDocTemplate(pDocTemplate);
// 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 FALSE;
// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About
class CAboutDlg : public CDialog
{
public:
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 26316 2009-10-28 22:31 fir-v0.8\fir.aps
文件 1904 2009-11-05 14:32 fir-v0.8\fir.clw
文件 4030 2009-10-15 23:36 fir-v0.8\fir.cpp
文件 4399 2009-10-27 20:57 fir-v0.8\fir.dsp
文件 531 2009-10-15 23:16 fir-v0.8\fir.dsw
文件 1323 2009-10-15 23:16 fir-v0.8\fir.h
文件 189440 2009-11-05 14:32 fir-v0.8\fir.ncb
文件 56832 2009-11-05 14:32 fir-v0.8\fir.opt
文件 1172 2009-11-05 10:10 fir-v0.8\fir.plg
文件 10156 2009-10-28 22:04 fir-v0.8\fir.rc
文件 1682 2009-10-15 23:16 fir-v0.8\firDoc.cpp
文件 1442 2009-10-15 23:16 fir-v0.8\firDoc.h
文件 18924 2009-11-05 10:10 fir-v0.8\firView.cpp
文件 2367 2009-10-28 21:57 fir-v0.8\firView.h
文件 1646 2009-10-28 22:35 fir-v0.8\MainFrm.cpp
文件 1421 2009-10-15 23:16 fir-v0.8\MainFrm.h
文件 3927 2009-10-15 23:16 fir-v0.8\ReadMe.txt
文件 1078 2009-10-16 17:10 fir-v0.8\res\fir.ico
文件 395 2009-10-15 23:16 fir-v0.8\res\fir.rc2
文件 1078 2009-10-15 23:16 fir-v0.8\res\firDoc.ico
文件 868 2009-10-20 08:22 fir-v0.8\resource.h
文件 205 2009-10-15 23:16 fir-v0.8\StdAfx.cpp
文件 999 2009-10-15 23:16 fir-v0.8\StdAfx.h
目录 0 2009-10-28 22:18 fir-v0.8\res
目录 0 2009-11-05 14:32 fir-v0.8
----------- --------- ---------- ----- ----
332135 25
相关资源
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
- c++ 画图(14Qt-XPS)
- c++多边形交并差运算
- VC++基于OpenGL模拟的一个3维空间模型
评论
共有 条评论