
数据结构
sun4gl
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
二叉树递归遍历
typedef int datatype;struct tree//建立二叉树{datatype num;struct tree *Lchild;struct tree *Rchild;}*head;struct tree *inser转载 2011-10-11 08:49:24 · 459 阅读 · 0 评论 -
二叉树遍历及简单应用
#include "stdafx.h"#include using namespace std;typedef char ElemType;typedef struct BiTNode{ ElemType data;//结点数据变量struct B转载 2011-10-10 06:39:33 · 950 阅读 · 0 评论 -
插入排序
#include "stdafx.h"#include /////////////直接插入排序////////////////void InsertSort(int p[],int length){int i,j,temp;for(i=0;i{temp=p[i];j=i-1;while(temp{p[j+1]=p[j];j--;}p[转载 2011-10-19 23:06:00 · 387 阅读 · 0 评论