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

Pages: 1-

how do you find quines?

Name: Anonymous 2013-02-25 15:11

I really tried hard with python and bash, but I failed...

Name: Anonymous 2013-02-25 15:18

Name: Anonymous 2013-02-25 15:53

Easy way:
- Define two strings one after the other. Doesn't matter what they are.
- Write a program to output the contents of string 1, followed by the contents of both strings (surrounded by string quote characters), followed by the contents of string 2.
- Populate string 1 with the contents of the program leading up to the definition of string 1.
- Populate string 2 with the contents of the program following the definition of string 2.
- Format as necessary.

Nobel prize please

Name: Anonymous 2013-02-25 16:21

puts DATA.read * 2
__END__
puts DATA.read * 2
__END__

Name: Anonymous 2013-02-25 17:52

>>4
Quines can't take input.

Name: Anonymous 2013-02-25 19:56

octave quine

a = "ding dong"


^^

Name: Anonymous 2013-02-25 20:00

argh it lost the quotes...

a =  3

works..

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