自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 问答 (1)
  • 收藏
  • 关注

原创 中序遍历求第k个节点的值

#include<iostream>using namespace std; typedef class trees { public: int data; trees *left; trees *right; }*Btree,...

2019-10-29 11:22:55 1632

原创 搜索树的创建,插入,删除操作

#include<iostream>using namespace std; typedef class trees { public: int data; trees *left; trees *right; }*Btree,...

2019-10-27 22:12:33 214

原创 二叉树的创建,遍历,查找,求高度(递归)

#include<iostream>using namespace std; typedef class student { public : student *left; student *right; char scores; }*Btree,tr...

2019-10-25 15:49:31 303

原创 全排列的递归算法

#include<iostream>#include<cstring>#include<stdio.h>using namespace std; void swap_str(char &a,char &b); void show(char *str,int start,int ends); bool sf_swap(...

2019-10-20 17:38:52 97

原创 带头节点链表的递归算法

#include<iostream>using namespace std; typedef class student { public : int scores; student *next; }*LinkList,Link; void init_Link(LinkList &a...

2019-10-19 16:51:58 398

原创 两种递归方法求数组元素最大值和最小值

#include<iostream>using namespace std; int maxs(int a[],int n);//n+1个元素的数组 int main() { int a[8]; cout<<"请输入8个数字"<<endl; for(int i...

2019-10-19 13:33:00 2071

原创 二分法查找的递归算法

#include<iostream>using namespace std; void mid_check(int num,int top,int bottom,int a[]); int main() { int a[8]; cout<<"请输入8个数字由校小到大"<<endl; ...

2019-10-19 12:22:17 539

原创 汉诺塔的递归问题

#include<iostream>using namespace std; void moves(char A,char B); void hnt(int n,char A,char B,char C);int counts=0; int main() { char A='A',B='B',C='C'; ...

2019-10-18 21:30:45 78

原创 判断一个字符串是否为回文字符串(递归)

#include<iostream>#include<stdio.h>#include<cstring>int judge_hy(char *str,int n);using namespace std; int main() { char a[30]; cout<<"请...

2019-10-18 21:29:52 1491

原创 调试结果和输出结果不一样

今天写一个递归函数的时候,试着没有传引用进去,but 最后输出的结果竟然没有错,最关键的是 调试结果和输出的结果不一样 一度怀疑,是不是自己的指针用错了,看了好久,然后换了不同的编译器测试。。 果然 该死的Codeblocks ,害我溜了好大一个湾 。。。。额 好吧,其实也还好,我还是很喜欢codeblocks的 嘻嘻嘻嘻嘻嘻#include<iostream> u...

2019-10-17 21:16:58 1588

原创 树的层序遍历,以及层序建树

#include<iostream>using namespace std; typedef class tree { public : int date; tree *left; tree *right; }*BTre...

2019-10-15 11:39:21 1014

原创 括号表示法字符建立 树(前序 中序 后续)

#include<iostream>using namespace std; typedef class node { public : int date; node *left; node *right; }*BTNode,...

2019-10-13 15:56:43 307

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除