![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 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 · 2515 阅读 · 0 评论 -
xyz全排列
给定一个字符串,其含有的字符各不相同。程序输出该字符串的所有排列(全排列)情形。例如:给定字符串“xyz”,则程序输出: xyz xzy yxz yzx zyx zxy 代码:(法一) #include #include using namespace std; void f(char *str, int len, int n) { int i原创 2013-04-30 17:18:24 · 1084 阅读 · 0 评论