Run at your own risk. Yes it's possible, because I actually wrote it up. It doesn't do the RUN part (that's just too crazy, because as others have mentioned, it will cause an infinite loop), but here it is: Quine. Quine . The minor difference is that Quine$. Quine$$. Quine$ will produce, compile and run Quine$$Quine$$ will produce, compile and run Quine$$$Quine$$$ will produce, compile and run Quine$$$$.. Do note that this doesn't do any reverse- engineering or cheat by reading the . Quine is a quine- generator because it produces a different code differently formatted, but Quine$ is pretty much a true self- contained quine: it does reproduce itself, it just relabels it Quine$$ (which reproduces itself and relabels to Quine$$$ etc). So technically there's no infinite loop: it will eventually come to a halt when the file system can't handle another $. I was able to manually stop the madness by forcefully deleting all Quine$* files, but run at your own risk!!! Write a program output itself, for example void main(). I don't understand why, but when i redirect output to a file, it writes the cout messages. Java Programming Tutorial Basic Input & Output. The following program writes some primitives to a disk file. Any other character matches itself. C PROGRAMMING: THE IF, WHILE. A sample output: Write a program that allows the user to enter students’ names followed by their test scores and outputs the. Can a program output a copy of itself. Somebody writes the interpreter. You can add anything you want inside this program, it will print itself completely. The presentation itself: a program of.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2017
Categories |