摘要: 题目:输入一个字符串,输出该字符串中字符的所有组合。举个例子,如果输入abc,它的组合有a、b、c、ab、ac、bc、abc。非递归实现: 1 #include 2 using namespace std; 3 4 void Print_str(char *str,int length , int s) 5 { 6 7 for(int i = 0 ; i 2 #include 3 #include 4 #include 5 using namespace std; 6 7 8 void Combination(char *string ,int number,vect... 阅读全文
posted @ 2013-07-24 18:58 NinaGood 阅读(206) 评论(0) 推荐(0) 编辑