数据结构 算法与运用
文章平均质量分 91
Jesse Kwok
See the results in two years!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
n个字符的全排列
n个字符的全排列 #include "stdafx.h" #include <iostream> using namespace std; template <typename T> inline void Swap(T& a, T& b); template &原创 2018-09-11 21:41:18 · 613 阅读 · 0 评论 -
通过递归函数 输出n个元素的所有子集
#include <iostream> using namespace std; template <typename T> a为待处理的集合 flag为判断是否输出(1输出 0不输出) start和end为字面意思 void coutSubset(T a,int flag[],int start,int end ); int main() { int flag...原创 2018-09-14 12:59:50 · 1374 阅读 · 2 评论 -
SDU 数据结构实验作业
实验一 递归练习 实验内容 1、 输入2-10个大于0的正整数,如果输入0作为结束。 2、 输出这几个整数的全排列,每个数之间用半角“,”隔开,中间不要有空格,每个排列单独一行。 3、 程序一定要有Input、Output、End提示信息,但是不要有格式没有出现的其他提示,以下各实验相同。 4、 程序最后增加system(pause),显示Press any key to continue并暂停...原创 2018-10-01 15:56:59 · 3279 阅读 · 0 评论
分享