2011年9月17日

各种排列组合的代码

摘要: 一.产生类循环排列输入样例3 2输出样例0 0 00 0 10 1 00 1 11 0 01 0 11 1 01 1 1#include <iostream> #include <ctime> using namespace std ; int A[100] ; void Print_permutation(int n, int *A , int cur) { int i , j ; if (cur == n) { /*for (i = 0 ; i < n ; ++ i) { cout << A[i] << " " ; 阅读全文

posted @ 2011-09-17 00:52 evilying 阅读(2739) 评论(0) 推荐(0) 编辑

导航