资源简介
二叉树(基于Mfc的程序开发),具有二叉树的先序遍历、中序遍历、后续遍历、以及非递归中序遍历、以及树形控件显示

代码片段和文件信息
// Binary Trees.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Binary Trees.h“
#include “MainFrm.h“
#include “Binary TreesDoc.h“
#include “Binary TreesView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBinaryTreesApp
BEGIN_MESSAGE_MAP(CBinaryTreesApp CWinApp)
//{{AFX_MSG_MAP(CBinaryTreesApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CBinaryTreesApp construction
CBinaryTreesApp::CBinaryTreesApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CBinaryTreesApp object
CBinaryTreesApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CBinaryTreesApp initialization
BOOL CBinaryTreesApp::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
// 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(CBinaryTreesDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CBinaryTreesView));
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.
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 47372 2009-05-20 17:43 二叉树\Binary Trees.aps
文件 3427 2009-05-20 17:46 二叉树\Binary Trees.clw
文件 4303 2009-05-15 19:48 二叉树\Binary Trees.cpp
文件 4893 2009-05-15 22:22 二叉树\Binary Trees.dsp
文件 549 2009-05-15 19:48 二叉树\Binary Trees.dsw
文件 1414 2009-05-15 19:48 二叉树\Binary Trees.h
文件 91136 2009-05-20 17:47 二叉树\Binary Trees.ncb
文件 48640 2009-05-20 17:47 二叉树\Binary Trees.opt
文件 1273 2009-05-20 17:46 二叉树\Binary Trees.plg
文件 13702 2009-05-20 17:43 二叉树\Binary Trees.rc
文件 1845 2009-05-15 19:48 二叉树\Binary TreesDoc.cpp
文件 1531 2009-05-15 19:48 二叉树\Binary TreesDoc.h
文件 6061 2009-05-20 17:46 二叉树\Binary TreesView.cpp
文件 2283 2009-05-20 16:48 二叉树\Binary TreesView.h
文件 1635 2009-05-18 22:33 二叉树\Btrees.cpp
文件 1395 2009-05-15 20:18 二叉树\Btrees.h
文件 2400 2009-05-15 20:40 二叉树\MainFrm.cpp
文件 1440 2009-05-15 20:40 二叉树\MainFrm.h
文件 4448 2009-05-15 19:48 二叉树\ReadMe.txt
文件 1078 2009-05-15 19:48 二叉树\res\Binary Trees.ico
文件 404 2009-05-15 19:48 二叉树\res\Binary Trees.rc2
文件 1078 2009-05-15 19:48 二叉树\res\Binary TreesDoc.ico
文件 326 2009-05-15 20:25 二叉树\res\cursor1.cur
文件 1078 2009-05-15 19:48 二叉树\res\Toolbar.bmp
文件 1614 2009-05-19 23:04 二叉树\resource.h
文件 214 2009-05-15 19:48 二叉树\StdAfx.cpp
文件 1054 2009-05-15 19:48 二叉树\StdAfx.h
文件 1133 2009-05-19 23:39 二叉树\新建 文本文档.txt
目录 0 2011-06-10 12:52 二叉树\res
目录 0 2011-06-10 12:52 二叉树
............此处省略3个文件信息
相关资源
- 二叉树排序树建立及平衡处理
- 使用平衡二叉树管理的学生管理系统
- 家族成员信息管理系统
- 二叉树 VC6.0 MFC实现 数据结构
- 二叉树的建立以及遍历
- MFC二叉树遍历的可视化
- 二叉树的生成与遍历mfc
- 二叉树的前序中序后序遍历MFC
- MFC/VC二叉树的建立和显示画图形式显
- 二叉树的遍历及应用.ppt
- 用二叉树做的心理测试mfc
- 二叉树和森林之间的转换
- c++ mfc 单词及其释义的录入和读取,查
- 利用二叉树结构实现赫夫曼编/解码器
- 数据结构实验报告-实现二叉树的基本
- C语言判定一棵二叉树是否为二叉搜索
- 二叉树C语言以及构建表达式树
- c语言遍历二叉树
- C++前中后缀表达式转表达式二叉树
- mfc二叉树的实现,涉及到增加节点等
- 二叉树非递归遍历源码
- 数据结构遍历二叉树算法C语言版(附
- C语言源代码学生成绩管理系统、图书
- C++ 二叉树 动物猜想游戏
- 学生成绩管理系统含二叉树内容
- 《数据结构》C语言版 实验报告 基础
- 二叉树c++源代码实现查找,删除,插
- 构建二叉树、输出二叉树、求树深、
- 孩子兄弟链表法表示二叉树C++
- 二叉树成绩管理系统
评论
共有 条评论