Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!noao!arizona!dave From: dave@cs.arizona.edu (Dave P. Schaumann) Newsgroups: comp.lang.c Subject: Re: need way to find all character combinations in a Summary: Do your own homework!!!!! Message-ID: <705@caslon.cs.arizona.edu> Date: 21 Jan 91 13:55:59 GMT References: <59459@aurs01.UUCP> Organization: U of Arizona CS Dept, Tucson Lines: 24 In article <59459@aurs01.UUCP> you write: >I am looking for help on a c programming class assignment. >I am suppose to write a program that takes an input string array, >up to six characters maximum, and print all combinations of the >characters in the string. For example, if "cat" in the input, >the output would be something like this: >cat cta atc act tca tac You will probably hear this quite a lot in the following days: USENET IS NOT THE PLACE TO GET YOUR HOMEWORK DONE FOR YOU!!! If you really can't think of an algorithm, maybe a trip to the library is in order. >Thanks in advance... >*********************************************** >* MARK VARNELL ...mcnc!aurgate!varnell * >*********************************************** Dave Schaumann | And then -- what then? Then, future... dave@cs.arizona.edu | -Weather Report