quine
program that prints itself, how does it work?
I came across a program that prints itself on this site, i.e. it prints the program code. The program code is:[详细]
2023-04-11 18:08 分类:问答Constructing quines (self-reproducing functions)
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[详细]
2023-03-15 13:33 分类:问答Shortest Python Quine?
Python 2.x (30 bytes): _=\'_=%r;print _%%_\';print _%_ Python 3.x (32 bytes开发者_如何转开发) _=\'_=%r;print(_%%_)\';print(_%_)[详细]
2023-03-09 23:25 分类:问答The missing quines: Visual Basic (for Applications)
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[详细]
2023-02-28 10:01 分类:问答How to write a quine program without main()
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.[详细]
2023-02-12 22:11 分类:问答Self-reproducing program
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[详细]
2023-02-12 16:26 分类:问答Ruby: Print source code
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[详细]
2023-02-05 00:44 分类:问答Is the reflection namespace a building block for writing a quine in C#?
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\"[详细]
2023-01-22 03:46 分类:问答quine (self-producing) SQL query
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[详细]
2023-01-21 11:53 分类:问答How to Reverse Quine?
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 :[详细]
2023-01-16 07:19 分类:问答