Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List All Combinations
#1
Hmm, this has probably been challanged before, but...

Can one make a program where, given letters in a list (a DATA statment) and the number of letters, all different combinations of those letters could be outputted to a file?

So if I put this as my data stament:

Code:
DATA T, H, E

The file (output.txt or something) would print

Code:
THE
TEH
HET
HTE
ETH
EHT

I'm working on one...
size=9]"To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." -- Theodore Roosevelt[/size]
Reply


Messages In This Thread
List All Combinations - by pr0gger - 07-10-2003, 02:43 AM
List All Combinations - by whitetiger0990 - 07-10-2003, 05:37 AM
List All Combinations - by pr0gger - 07-10-2003, 07:24 AM
List All Combinations - by whitetiger0990 - 07-10-2003, 07:29 AM
List All Combinations - by Moneo - 07-12-2003, 12:26 AM
List All Combinations - by Antoni Gual - 07-12-2003, 01:52 AM
List All Combinations - by pr0gger - 07-12-2003, 02:14 AM
List All Combinations - by Moneo - 07-12-2003, 02:23 AM
List All Combinations - by whitetiger0990 - 07-12-2003, 02:27 AM
List All Combinations - by Moneo - 07-12-2003, 02:34 AM
List All Combinations - by whitetiger0990 - 07-12-2003, 02:54 AM
code - by Meg - 07-12-2003, 03:30 AM
List All Combinations - by Moneo - 07-12-2003, 03:43 AM
List All Combinations - by Antoni Gual - 07-12-2003, 05:47 AM
Spanish Blood - by Meg - 07-12-2003, 09:07 AM
List All Combinations - by relsoft - 07-12-2003, 11:05 AM
List All Combinations - by Piptol - 07-12-2003, 05:11 PM
List All Combinations - by pr0gger - 07-13-2003, 02:54 AM
List All Combinations - by relsoft - 07-14-2003, 10:22 AM
List All Combinations - by Ninkazu - 07-14-2003, 10:45 AM
List All Combinations - by relsoft - 07-14-2003, 11:29 AM
List All Combinations - by whitetiger0990 - 07-12-2003, 02:08 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)