小李子

小小的蜗牛,慢慢的爬。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2007年10月12日

摘要: // BTree.cpp : Defines the entry point for the console application./*作者:成晓旭时间:2001年7月2日(9:00:00-14:00:00)内容:完成二叉树的创建、前序遍历、中序遍历、后序遍历时间:2001年7月2日(14:00:00-16:00:00)内容:完成二叉树的叶子节点访问,交换左、右孩子*/#include "stdafx.h"#include "stdlib.h"#define MAX_NODE 100#define NODE_COUNT1 8#define NODE_C 阅读全文

posted @ 2007-10-12 19:09 ljl_falcon 阅读(361) 评论(0) 推荐(0)

摘要: //二叉树处理头文件//包括二叉树的结构定义,二叉树的创建,遍历算法(递归及非递归),/*作者:成晓旭时间:2001年10月7日(18:49:38-20:00:00)内容:完成二叉树创建,二叉树的前,中,后序遍历(递归)时间:2001年10月7日(21:09:38-22:09:00)内容:完成二叉树的前,中序遍历(非递归)时间:2001年10月8日(10:09:38-11:29:00)内容:完成查找二叉树的静,动态查找(非递归)*/#include "stdlib.h"#define MAXNODE 20#define ISIZE 8#define NSIZE0 7#def 阅读全文

posted @ 2007-10-12 19:08 ljl_falcon 阅读(195) 评论(0) 推荐(0)

摘要: #include"stdafx.h"#include"stdio.h"#include"stdlib.h"#defineSMALL 1#if(SMALL)#defineMAX7int QueueData[MAX] = {'A','B','C','D','E','F','G'};#else#defineMAX14int QueueData[MAX] = {'A','B','C', 阅读全文

posted @ 2007-10-12 19:06 ljl_falcon 阅读(195) 评论(0) 推荐(0)

摘要: // Layout.cpp : Defines the entry point for the console application./*作者:成晓旭时间:2001年10月11日(11:35:38-12:35:00)内容:完成插花问题的“动态规划法”算法及注解*/#include "stdafx.h"#include "string.h"#define MAX(A,B) ((A) > (B) ? (A):(B))//--------------------鲜花问题--------------------#define F 100#define V 阅读全文

posted @ 2007-10-12 19:05 ljl_falcon 阅读(223) 评论(0) 推荐(0)

摘要: // Stack.cpp : Defines the entry point for the console application.//#include"stdafx.h"#include"stdio.h"#include"stdlib.h"//*#defineSTACK_MAX_SIZE7int StackData[STACK_MAX_SIZE] = {'A','B','C','D','E','F','G'};//*// 阅读全文

posted @ 2007-10-12 19:05 ljl_falcon 阅读(281) 评论(0) 推荐(0)

摘要: //国际象棋“皇后”问题处理头文件//国际象棋“皇后”问题的回溯算法/**//*作者:成晓旭时间:2001年10月9日(17:35:38-18:00:00)内容:完成“皇后”问题的程序序言部分时间:2001年10月9日(14:00:00-15:00:00)内容:完成“皇后”问题的程序序言部分===================================================问题描述:在一个n*n的棋盘上放置n个不能互相捕捉的国际象棋“皇后”,并输出所有合理的布局情况.(在国际象棋中,皇后可以沿着纵、横及两条斜线共4个方向捕捉对手,可见,合适的解是在每行、每列及在一条斜线上只能 阅读全文

posted @ 2007-10-12 19:03 ljl_falcon 阅读(422) 评论(0) 推荐(0)