Timeline for Output a shuffled deck using random input
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 3, 2012 at 1:48 | history | edited | dmckee --- ex-moderator kitten | CC BY-SA 3.0 | added 37 characters in body |
| Nov 2, 2012 at 14:29 | history | edited | dmckee --- ex-moderator kitten | CC BY-SA 3.0 | "improved" code |
| Nov 2, 2012 at 14:28 | comment | added | dmckee --- ex-moderator kitten | @luserdroog Clearer headed now. Of course strings are better--though you have to specify the type--because characters are just short integers. Plus I can combine them and the ASCII substitutions get a bunch of strokes in one go. | |
| Nov 2, 2012 at 5:10 | comment | added | dmckee --- ex-moderator kitten | Macro substitutions need to gain a lot because they have to start with #define N and end with a newline that counts as a character and that's 11, plus the bit you are replacing. There are certainly a few more characters in replacing some or all of the character literals with int literals, but it's late here...maybe I'll do it another time. | |
| Nov 2, 2012 at 4:50 | comment | added | luser droog | Oh. Right. ints. I get it. Might still be worth it to save all the punctuation. Might even factor the char out of getchar and putchar with a crazy pasty macro... | |
| Nov 2, 2012 at 4:46 | comment | added | luser droog | +1 I have much to learn. BTW, why not "TJQKA" and "cdhs"? | |
| Nov 2, 2012 at 4:28 | history | answered | dmckee --- ex-moderator kitten | CC BY-SA 3.0 |