搜索资源列表
revmatrix
- 螺旋矩阵问题:编程产生H*L的螺旋矩阵。首先,我们用一个二维数组来放置矩阵,然后按照数字大小顺序来填充矩阵.-spiral Matrix : Programming produced H * L spiral matrix. First, we used a two-dimensional array to accommodate matrix, in accordance with the order number to filling matrix.
Array.h
- 数据结构(c++语言描述)动态数组类的定义和实现
datastr
- C/C++常用的数据结构类 包括: array.h: 安全数组,可自动增长大小(随机访问,但扩充时效率低) linkedlist.h: 普通链表(可随机访问,但访问效率低) dclinkedlist: 双向循环链表(不可随机访问,但插入、遍历的效率都比普通链表高) hashtable.h: 哈希表(使用键值标识元素,键值一样的元素即认为相等,需重载 == 运算符并由用户定义哈希函数) binstree.h: 二叉搜索树(需重载 == 和 < 运算符) avltr
paixu
- 用指向指针的方法对n个数进行排序并输出,n和各整数在主函数中输入-#include <stdio.h> #define SIZE 100//数组最大长度 #define SWAP(x, y, t) (t = x, x = y, y = t)//交换两个数 void sort(int**p, int n){//排序函数 int i, j int min int temp for(i = 0 i < n- 1 i++){
array
- array接口,提供了动态数组的接口和实现,内有array.c为实现array.h为接口以及makefile。可在gcc下编译通过-array interface and implementation
algorithms-master
- 1. 经典的算法实现 2. 服务器端 3. 正确,易于使用和改造, 一个头文件一个算法,并附带一个demo. 1. 一个算法用一个.h文件表示放到include下.2. 算法演示的demo程序放到src下.3. 程序正确通过后,请发起Pull Requests,代码被验证后入库,并在README中发布新算法实现。 已实现 ( Implemented ): Array shuffle Prime test(trial division) Prime test(Mi