摘要: 1 #include<stdio.h> 2 #include<string.h> 3 int a[10],m,n; 4 5 //取数算法 6 7 8 /*1、从m中选出n个全排列,从大到小,不允许重复 9 10 3 2 输入 11 12 32 13 31 14 21 15 16 */ 17 void fun1(int m,int n) 18 { 19 int i,j; 20 for(i=m;i>0;i--) 21 { 22 a[n]=i; 23 if(n>1) 24 fun1(i... 阅读全文
posted @ 2012-11-27 15:05 萧凡客 阅读(340) 评论(0) 推荐(0) 编辑