
数据结构
文章平均质量分 74
高飞007
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
顺序表的合并(无序合并且相同数据不在插入) 严蔚敏(c语言版)
有两个集合A和B分别用两个线性表LA和 LB表示,即:线性表中的数据元素即为集合中的成员。 现要求一个新的集合A=A∪B。 代码:#define list_size 10#define increment 5#define ok 1#define error 2#define overflow 3#include #include原创 2012-08-09 10:08:07 · 2664 阅读 · 0 评论 -
xyz全排列
给定一个字符串,其含有的字符各不相同。程序输出该字符串的所有排列(全排列)情形。例如:给定字符串“xyz”,则程序输出:xyzxzyyxzyzxzyxzxy 代码:(法一)#include #include using namespace std;void f(char *str, int len, int n){ int i原创 2013-04-30 17:18:24 · 1165 阅读 · 0 评论