资源简介
汉诺塔递归实现,可视化,用VC6.0,在XP和Win7下编译通过

代码片段和文件信息
// HanoiDemo.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “HanoiDemo.h“
#include “HanoiDemoDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHanoiDemoApp
BEGIN_MESSAGE_MAP(CHanoiDemoApp CWinApp)
//{{AFX_MSG_MAP(CHanoiDemoApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CHanoiDemoApp construction
CHanoiDemoApp::CHanoiDemoApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CHanoiDemoApp object
CHanoiDemoApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CHanoiDemoApp initialization
BOOL CHanoiDemoApp::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
CHanoiDemoDlg 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1214 2010-03-12 15:54 HanoiDemo\HanoiDemo.clw
文件 2105 2010-03-10 17:26 HanoiDemo\HanoiDemo.cpp
文件 4213 2010-03-10 17:26 HanoiDemo\HanoiDemo.dsp
文件 541 2010-03-10 18:40 HanoiDemo\HanoiDemo.dsw
文件 1357 2010-03-10 17:26 HanoiDemo\HanoiDemo.h
文件 689 2010-03-12 15:54 HanoiDemo\HanoiDemo.plg
文件 6006 2010-03-12 15:54 HanoiDemo\HanoiDemo.rc
文件 10251 2010-03-12 15:54 HanoiDemo\HanoiDemoDlg.cpp
文件 1641 2010-03-12 15:36 HanoiDemo\HanoiDemoDlg.h
文件 3633 2010-03-10 17:26 HanoiDemo\ReadMe.txt
文件 1078 2010-03-10 17:26 HanoiDemo\res\HanoiDemo.ico
文件 401 2010-03-10 17:26 HanoiDemo\res\HanoiDemo.rc2
文件 779 2010-03-10 18:06 HanoiDemo\Resource.h
文件 211 2010-03-10 17:26 HanoiDemo\StdAfx.cpp
文件 1054 2010-03-10 17:26 HanoiDemo\StdAfx.h
目录 0 2010-03-10 17:26 HanoiDemo\res
目录 0 2010-03-12 15:55 HanoiDemo
----------- --------- ---------- ----- ----
35173 17
相关资源
- 利用C++哈希表的方法实现电话号码查
- 用回溯法解决八皇后问题C语言实现
- 操作系统课设 读写者问题 c语言实现
- 3des加密算法C语言实现
- C语言实现的一个内存泄漏检测程序
- DES加密算法C语言实现
- 线性回归算法c语言实现
- 用C语言实现的一个打字游戏
- C语言实现的DES对称加密算法
- 用C语言实现高效日志
- 用VC6.0实现多边形扫描线填充算法
- C语言实现十进制转十六进制
- 串口通讯技术实现--两台pc机通过串口
- 文件传输和聊天程序(c语言实现)
- 基于C语言实现的网络爬虫(搜索引擎
- VC++实现CMD命令执行与获得返回信息
- STM32读CS1237实现秤重测量
- Qt的纽带风格界面实现(Office Ribbon风
- qt 实现画板
- Qt 实现心电图
- Qt实现 屏幕截图
- qt cmd实现ping
- QT实现USB摄像头拍照
- 使用QWT库实现接收串口数据,并根据
- 简易web服务器的设计与实现
- STM32 LIN通信数据发送实现 测试通过
- 程序案例 利用LabVIEW实现串口通讯
- STM32F10实现照相功能照相机
- stm32实现高精度频率测定
- cubeMX设计实现stm32f407上的CAN及485的通
评论
共有 条评论