E
Eric Sosman
BartC said:In the real world letter case usually has no significance.
I'm surprised you think this way, bARTc.
BartC said:In the real world letter case usually has no significance.
I believe you can code it that way. If you are interested, I can post the
source.
Bill Cunningham said:"Ben Bacarisse" <[email protected]> wrote in message
I don't think so. I don't know how to code it. I'm thinking
using for?
Bill said:[snip]
I believe you can code it that way. If you are interested, I can post the
source.
I would much appreciate it. I do what to work with char permutations.
Takes the word "zeus". There's going to have to be a counter somewhere I do
understand that concept. Coding it is different.
Bill
define "read the number of characters"
define "sift them around"
<snip>
I think I need a char** definition here. Maybe I could replace CHAR_MAX
with 40 or something like that. I'll post something soon that I believe
might get me closer.
Richard said:Bill Cunningham said:
No, it's ISO C - or at least, nearly so.
I made the following adjustments:
1) added a newline to the end of the file;
2) changed two format specifiers from %s to %d for __LINE__
printing.
I then got a reasonably clean build, which works just fine, although
the usage instructions are wrong. On the command line, pass the
length of the desired output as the first command line argument,
and a series of one or more characters as the second command line
argument. (The instructions have this the wrong way around.)
For example, if you specify 3 abcd as the command line arguments
(after the program name), you get this output (which I've piped
through fmt to reduce vertical space requirements):
aaa baa caa daa aba bba cba dba aca bca cca dca ada bda cda dda
aab bab cab dab abb bbb cbb dbb acb bcb ccb dcb adb bdb cdb ddb
aac bac cac dac abc bbc cbc dbc acc bcc ccc dcc adc bdc cdc ddc
aad bad cad dad abd bbd cbd dbd acd bcd ccd dcd add bdd cdd ddd
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.