Results 1 to 1 of 1

Thread: Quines

Threaded View

  1. #1

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860

    Quines

    What's the shortest quine you've written in VB6? A quine is a program that prints itself (without reading the file its stored in). They're generally easier to write in C because it's not quite as wordy.

    Mine, which isn't particulary good at 187 characters, goes:
    VB Code:
    1. Sub main(): s = "Sub main(): s = "";"": Debug.Print Replace(s, Chr(59), Replace(s, Chr(34), """""""""""")): End Sub": Debug.Print Replace(s, Chr(59), Replace(s, Chr(34), """""")): End Sub
    Last edited by alkatran; Jun 13th, 2006 at 02:52 PM.
    Don't pay attention to this signature, it's contradictory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width