ahua的头发

导航

2020年6月13日 #

数据结构::快速排序模板

摘要: 数据结构::快速排序模板 #include <stdio.h> int a[101],n;//定义全局变量,这两个变量需要在子函数中使用 void quicksort(int left, int right) { int i, j, t, temp; if(left > right) return; 阅读全文

posted @ 2020-06-13 17:17 ahua的头发 阅读(188) 评论(0) 推荐(0) 编辑

数据结构::堆排序

摘要: 数据结构::堆排序 #include <stdio.h> void swap(int array[],int x,int y){ int key; key=array[x]; array[x]=array[y]; array[y]=key; } //从大到小排序 //void Down(int ar 阅读全文

posted @ 2020-06-13 17:03 ahua的头发 阅读(177) 评论(0) 推荐(0) 编辑

数据结构::二叉树的基本操作

摘要: 数据结构::二叉树的基本操作 #include <iostream> #include <stdlib.h> #include<bits/stdc++.h> using namespace std; //数据元素类型 typedef char ElemType; //二叉树结点定义 typedef 阅读全文

posted @ 2020-06-13 10:54 ahua的头发 阅读(453) 评论(0) 推荐(0) 编辑