VBGuyUsingVC
Programmer
I took on a project that I assumed would be relatively simple. But for some reason, there is a block where I cannot find a solution.
I need to write a program that will create all possible combinations of a string. For example:
String = ABC
Combinations=ABC,ACB,BAC,BCA,CAB,CBA
String = ABCD
Combinations=ABCD,ABDC,ACBD,ACDB,ADBC,ADCB,BACD etc....
The string can be any size. I know the longer the string, the greater the combinations. I just cannot seem to figure out how to program it. Go figure. Any help is appreciated.
I need to write a program that will create all possible combinations of a string. For example:
String = ABC
Combinations=ABC,ACB,BAC,BCA,CAB,CBA
String = ABCD
Combinations=ABCD,ABDC,ACBD,ACDB,ADBC,ADCB,BACD etc....
The string can be any size. I know the longer the string, the greater the combinations. I just cannot seem to figure out how to program it. Go figure. Any help is appreciated.