2011年6月16日
摘要: 分别交换第1个元素与第2、3、4、5..len-1个元素 void permutation(char *str,int begin,int len){ if(len==1){ printf("%s\n",str); count++; return; } char tmp = str[begin]; for(int i=0;i<len;i++){ char tmp2=str[begin+i]; s... 阅读全文
posted @ 2011-06-16 23:40 yangyh 阅读(314) 评论(0) 推荐(0) 编辑