I came across a program that prints itself on this site, i.e. it prints the program code. The program code is:
Has anyone constructed a quine (\"A program that generates a copy of its own source text as its complete output\": http://www.nyx.net/~gthompso/quine.htm) in R?(The [quine] tag pulls up lots of exampl
Python 2.x (30 bytes): _=\'_=%r;print _%%_\';print _%_ Python 3.x (32 bytes开发者_如何转开发) _=\'_=%r;print(_%%_)\';print(_%_)
Today I surfed some random geek-stuff articles on wikipedia to get my daily dose of useless knowledge. I stumbled accross quines, which are programs that print their own source-code. I found t开发者_S
I went through all sorts of quine problems开发者_JAVA技巧, but my task was to get a quine problem without main(), and loops are also forbidden.
I am questioning my solution to the last exercise in Acc开发者_如何学运维elerated C++: Write a self-reproducing program. Such a program is one that does no input, and that, when run, writes a copy o
Recently I heard about something called Quine. But my definition of it is a bit unclear. I believe that you can print your own Ruby file\'s source code without using __FILE__? Is that possible? I wou
Do I need to use reflection to write a quine program for C#? I read elsewhere - quine that opening the source file from disk is \"cheating\"
This is a very interesting wiki article about programs that print their own source code without any access to physical source file (in the filesystem). Examples in the articles include C and Scheme qu
i have written a C progr开发者_开发百科amme which prints itself n times, but i can\'t get how to reverse print the same n times.E.g, if the sample programme is :