0

Possible Duplicate:
Can a program output a copy of itself

Could someone write a program that print the exactly code of the program

Community
  • 1
  • 1
marcos
  • 11
  • 2
    duplicate of [Can a program output a copy of itself](http://stackoverflow.com/questions/1479489/can-a-program-output-a-copy-of-itself) and many others – sdcvvc Aug 09 '10 at 18:07
  • 1
    Numerous duplicates. Search http://stackoverflow.com/search?q=quine – Paul Tomblin Aug 09 '10 at 18:08
  • 1
    Sure, here it is: (This is Python code, but it also works in Perl, Ruby and bash.) – Thomas Aug 09 '10 at 18:08

1 Answers1

3

http://www.nyx.net/~gthompso/quine.htm

This is probably what you are looking for.

Marcus Johansson
  • 2,626
  • 2
  • 24
  • 44