Does a quine开发者_JS百科 print the ACTUAL code of the program i.e not obfuscated or does it print the obfuscated program?I don\'t think obfuscation has anything to do with it. Usually a quine prints
def start(fileName): 开发者_开发问答 fileReader = open(fileName) for row in fileReader: print row,
Is it possible to have a Java printf statement, whose output is the statement itself? Some snippet to illustrate:
is it possible to write a program which prints its own source code utilizing a \"sequence-generating-function\"?
Is it possible to make a Java program that prints its source code to a new file, and compiles开发者_StackOverflow it, and runs the compiled program?Update:
I have created a turing-complete programming language (already proven) so it must be possible to write a quine for it, right?
I just wanted to know if it is 100% possible, if my language is turing-complete, to write a program in it that prints itself out (of course not using a file reading function)
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
It is开发者_如何学Go known that C++ templates are turing complete.As such it should be possible to output a quine that is essentially rendered at compile time.Does anyone know if such a quine has been
I am trying to understand how this piece of self-replicating code works (found here), but the problem is I can\'t get it to run as-is: