Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SHOW ME YOUR QUINES

Name: Anonymous 2010-07-06 19:36


const char *s[15] = {
        "%c%c%s%c%c%c",
        "const char *s[15] = {",
        "};",
        "#include <stdio.h>",  
        "int main(void) {",
        "        int i;",
        "        puts(s[1]);",
        "        for (i=0; i<14; ++i)",
        "                printf(s[0], 9, 34, s[i], 34, 44, 10);",
        "        printf(s[0], 9, 34, s[i], 34, 0, 10);",
        "        puts(s[2]);",
        "        for (i=3; i<15; ++i)",
        "                puts(s[i]);",
        "        return 0;",
        "}"
};
#include <stdio.h>
int main(void) {
        int i;
        puts(s[1]);
        for (i=0; i<14; ++i)
                printf(s[0], 9, 34, s[i], 34, 44, 10);
        printf(s[0], 9, 34, s[i], 34, 0, 10);
        puts(s[2]);
        for (i=3; i<15; ++i)
                puts(s[i]);
        return 0;
}

the one I wrote.

Name: Anonymous 2010-07-06 20:29

How long before some retard tries something inane like `cat $0`?
Oh wait >>2 already did it.

Look, quines don't read their own program file as input. That's not a quine, that's just a program that reads itself.

Name: Anonymous 2010-07-06 21:14

infile = open(__file__, 'r')
for line in infile:
    print line,


Expert python implementation.

Name: Anonymous 2010-07-06 21:19

#!/bin/cat

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List