Post the simplest quine you can think of in any language EXCEPT HQ9+.
A quine is a program that prints its own source code.
sh:
Yeah, yeah, I'm cheating.Code:#This is a quine in sh. cat $0
And a simpler one: (also cheap)
Code:#!/bin/cat
Post the simplest quine you can think of in any language EXCEPT HQ9+.
A quine is a program that prints its own source code.
sh:
Yeah, yeah, I'm cheating.Code:#This is a quine in sh. cat $0
And a simpler one: (also cheap)
Code:#!/bin/cat
Last edited by epicoder; April 16th, 2010 at 02:11 PM.
Don't use W3Schools as a resource! (Inconsequential foul language at the jump)
Open Linux Forums (More foul language, but well worth it for the quality of support and good humor.)
If you want to discuss W3Schools, please PM me instead of posting.
That's pretty hard.
The null program. Ok, so it's cheating. Oh well
Website | Blog | The Arch Hurd Project
If you want to ask about something I posted, send a PM, as I don't watch many threads
Here's one in C:
Code:
8-inch floppy disks must've been huge!
Blog | Ubuntu User #15350 | Zsh FTW | Ubuntu Security | Nothing to hide?
AMD Phenom II X6 1075T @ 3GHz, Nvidia GTX 650, 8GB DDR3 RAM, 1 X 1TB, 2 X 3TB HDD
Please don't request support via PM
Programming hurts my head.
Acer Swift 3 (SF314-42-R7LH)
Nope. In some languages yes, but not in C.Code:[ian@sanpedro ~]$ cat temp.c [ian@sanpedro ~]$ gcc temp.c /usr/lib/gcc/i686-redhat-linux/4.4.3/../../../crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status [ian@sanpedro ~]$
Bookmarks