Quines

All things techie, be they discussions on troubleshooting, video encoding, programming, or algorithm design.

Moderator: Nuxius

Quines

Postby Gigafrost » Fri Jan 17, 2003 11:36 am

Pretty much, we've got the goal of making one for my CS315 class and, yay! I succeeded!

What a Quine is (or maybe it's just an example of one...I could check up on that but I'm lazy) is a program that prints itself out...line for line, character for character. The trick is, it's not allowed to read outside of the program in any way, even indirectly, so going to memory or reading the file or inputting from the console doesn't work. The program itself has to have the ability to print itself out...

Then, I've heard of the legendary multi-Quines...Quines that print different versions of their own program in different programming languages while still being able to print itself out in its current language...Ack! o.O I'm not even going to *try* to do that...for now anyways. :p
User avatar
Gigafrost
Frost Weapon
Frost Weapon
 
Posts: 4900
Joined: Wed Dec 04, 2002 5:09 pm
Location: Here

Postby Evlfrost » Fri Jan 17, 2003 4:52 pm

Wow sounds complecated. I had to make a program for one of my classes. The network was screwing up so it would save right. Do you know how annoying it is to write the same program over 4 different times?
Evljsh: You're young and thus illegal!
xXOkashiiSuruXx: -falls over-

Image
User avatar
Evlfrost
Frost Druid
Frost Druid
 
Posts: 6692
Joined: Thu Dec 05, 2002 2:41 pm
Location: Suburbia

Postby Nyufrost » Fri Jan 17, 2003 8:09 pm

Hmmm ... where have I seen this before? O.o :shock
<BR><center> "Snowflakes are one of nature's most fragile things, but just look <br> what they can do when they stick together.." ... Vesta M. Kelly</center>
User avatar
Nyufrost
Frost Advisor
Frost Advisor
 
Posts: 5534
Joined: Wed Dec 04, 2002 7:03 am
Location: Out There

Postby TerraFrost » Fri Jan 17, 2003 10:28 pm

every CS student at the University of Texas at Austin is required to take a few CS classes to actually get into the major. one of the teachers of those required CS classes always requires his students write a program that prints itself out. I did it, and Krylanna probably did it (although she also might have had a different professor at that point).

Anyways, mine was designed slightly differently from Giga's... mine was easier on the programing side, as i just mushed the program into one really long line. Giga actually took the time to make his do carriage returns! way to go, Giga! :)
TerraFrost
Legendary Guard
 
Posts: 12216
Joined: Wed Dec 04, 2002 6:37 am


Return to Communications Center

Who is online

Users browsing this forum: No registered users and 1 guest