【问题】
输入一个字符串。输出该字符串中字符的全部组合。举个样例。假设输入abc,它的组合有a、b、c、ab、ac、bc、abc。
【分析解法1】
对于字符串中每一个字符。仅仅有两种情况:一种就是出如今组合中,一种是不出如今组合中。
【代码】
void combination(char *str, char *res, int strPos, int resPos, int size) { if (strPos == size) { res[resPos] = '