Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Write a program

Name: Jinnai and the Bugrom 2009-10-18 17:34

...to print out the lyrics to Hubba Hubba Zoot Zoot.

...in a language of your choosing.

Name: Anonymous 2009-10-18 17:38

the fuck is hubba hubba zoot zoot?

Name: Anonymous 2009-10-18 17:45

>>2
It's almost as if you didn't know how to google...

Kids these days. What the fuck.

Name: Anonymous 2009-10-18 17:52

my isp blocked google.

Name: Anonymous 2009-10-18 18:00

>>3
So what is it?

Name: Anonymous 2009-10-18 18:04

christopher@chrislaptop$ php -r "print(\"the lyrics to [i]Hubba Hubba Zoot Zoot[/i].\n\");"

Name: Anonymous 2009-10-18 19:04

print'the lyrics to Hubba Hubba Zoot Zoot.'

Name: Anonymous 2009-10-18 19:50

p'the lyrics to Hubba Hubba Zoot Zoot.'

Name: Anonymous 2009-10-18 20:10

'the lyrics to Hubba Hubba Zoot Zoot.'

Name: Anonymous 2009-10-18 20:22

#!/bin/sh
URL=http://www.lyricstime.com/caramba-hubba-hubba-zoot-zoot-lyrics.html
lynx -nolist -dump $URL |lp

Name: Anonymous 2009-10-18 20:28

;; hubba - displays ``the lyrics to Hubba Hubba Zoot Zoot.''
;; Adapted from durrrrrr <http://dis.4chan.org/read/prog/1209252040/72>;;
;; Adapted from cocks <http://dis.4chan.org/read/prog/1204983387/529>;;
;;
;; Copyright (c) 2008 Christopher
;; Copyright (c) 2008 James
;; Copyright (c) 2009 Anonymous
;;
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to deal
;; in the Software without restriction, including without limitation the rights
;; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
;; copies of the Software, and to permit persons to whom the Software is
;; furnished to do so, subject to the following conditions:
;;
;; The above copyright notice and this permission notice shall be included in
;; all copies or substantial portions of the Software.
;;
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
;; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
;; THE SOFTWARE.
(write "the lyrics to Hubba Hubba Zoot Zoot.")

Name: Anonymous 2009-10-18 21:28

>>2-11,13-
Nice NON-SCALABLE SOLUTIONS!!!

static string SPACE_CHARACTER = " ";
static string THAT_WHICH_WILL_ZOOT = "Hubba";
static string THAT_WHICH_WILL_BE_HUBBAD = "Zoot";
static int NUMBER_OF_HUBBA_REPETITIONS = 2;
static int NUMBER_OF_ZOOT_REPETITIONS = 2;
static int NUMBER_OF_UNIQUE_VERBS_AND_NOUNS = 2;
static string FORM_OF_MEDIA_BEING_REQUESTED = "lyrics";
static int INCREMENT_SIZE = 1;
static string IDENTIFIER = "The";
static string PREPOSITION = "to";

static void main(string args)
{
   string songName = "", request = "";

   for (int counter = 0; counter <= NUMBER_OF_UNIQUE_VERBS_AND_NOUNS; i += INCREMENT_SIZE)
   {
      for (int counter = 0; counter <= NUMBER_OF_HUBBA_REPETITIONS; i += INCREMENT_SIZE)
      {
         songName += THAT_WHICH_WILL_ZOOT;
         songName += SPACE_CHARACTER;
      }
      for (int counter = 0; counter <= NUMBER_OF_ZOOT_REPETITIONS; i += INCREMENT_SIZE)
      {
         songName += THAT_WHICH_WILL_BE_HUBBAD;
         songName += SPACE_CHARACTER;
      }
   }

   request += IDENTIFIER;
   request += SPACE_CHARACTER;
   request += FORM_OF_MEDIA_BEING_REQUESTED
   request += SPACE_CHARACTER;
   request += PREPOSTITION;
   request += songName;

   System.out.println(request);
}

Name: UMH memesmith !gNlkr4vCuc 2009-10-18 21:39

>>12
You can't even Java.
public class Lyrics
{
    static String SPACE_CHARACTER = " ";
    static String THAT_WHICH_WILL_ZOOT = "Hubba";
    static String THAT_WHICH_WILL_BE_HUBBAD = "Zoot";
    static int NUMBER_OF_HUBBA_REPETITIONS = 2;
    static int NUMBER_OF_ZOOT_REPETITIONS = 2;
    static int NUMBER_OF_UNIQUE_VERBS_AND_NOUNS = 2;
    static String FORM_OF_MEDIA_BEING_REQUESTED = "lyrics";
    static int INCREMENT_SIZE = 1;
    static String IDENTIFIER = "The";
    static String PREPOSITION = "to";

    public static void main(String[] args)
    {
       String songName = "", request = "";

       for (int i = 0;
            i <= NUMBER_OF_UNIQUE_VERBS_AND_NOUNS;
            i += INCREMENT_SIZE)
       {
          for (int counter = 0;
               counter <= NUMBER_OF_HUBBA_REPETITIONS;
               counter += INCREMENT_SIZE)
          {
             songName += THAT_WHICH_WILL_ZOOT;
             songName += SPACE_CHARACTER;
          }
          for (int counter = 0;
               counter <= NUMBER_OF_ZOOT_REPETITIONS;
               counter += INCREMENT_SIZE)
          {
             songName += THAT_WHICH_WILL_BE_HUBBAD;
             songName += SPACE_CHARACTER;
          }
       }

       request += IDENTIFIER;
       request += SPACE_CHARACTER;
       request += FORM_OF_MEDIA_BEING_REQUESTED;
       request += SPACE_CHARACTER;
       request += PREPOSITION;
       request += SPACE_CHARACTER;
       request += songName;

       System.out.println(request);
    }
}


Or did you intend to C#?

Name: Anonymous 2009-10-18 21:44

>>13
The only time I've ever written in Java is when writing code for /prog/!

Name: Anonymous 2009-10-18 23:14

>>13
D Flat version

using System;

public class Lyrics
{
    static string SPACE_CHARACTER = " ";
    static string THAT_WHICH_WILL_ZOOT = "Hubba";
    static string THAT_WHICH_WILL_BE_HUBBAD = "Zoot";
    static int NUMBER_OF_HUBBA_REPETITIONS = 2;
    static int NUMBER_OF_ZOOT_REPETITIONS = 2;
    static int NUMBER_OF_UNIQUE_VERBS_AND_NOUNS = 2;
    static string FORM_OF_MEDIA_BEING_REQUESTED = "lyrics";
    static int INCREMENT_SIZE = 1;
    static string IDENTIFIER = "The";
    static string PREPOSITION = "to";

    public static void Main(string[] args)
    {
       string songName = "", request = "";

       for (int i = 0;
            i <= NUMBER_OF_UNIQUE_VERBS_AND_NOUNS;
            i += INCREMENT_SIZE)
       {
          for (int counter = 0;
               counter <= NUMBER_OF_HUBBA_REPETITIONS;
               counter += INCREMENT_SIZE)
          {
             songName += THAT_WHICH_WILL_ZOOT;
             songName += SPACE_CHARACTER;
          }
          for (int counter = 0;
               counter <= NUMBER_OF_ZOOT_REPETITIONS;
               counter += INCREMENT_SIZE)
          {
             songName += THAT_WHICH_WILL_BE_HUBBAD;
             songName += SPACE_CHARACTER;
          }
       }

       request += IDENTIFIER;
       request += SPACE_CHARACTER;
       request += FORM_OF_MEDIA_BEING_REQUESTED;
       request += SPACE_CHARACTER;
       request += PREPOSITION;
       request += SPACE_CHARACTER;
       request += songName;

       Console.WriteLine(request);
    }
}

Name: Anonymous 2009-10-19 0:21

#include <stdint.h>
#include <stdio.h>
#include <string.h>

#define MAXSTRLEN_SONGNAME      32
#define MAXSTRLEN_REQUEST       256


char* SPACE_CHARACTER = " ";
char* THAT_WHICH_WILL_ZOOT = "Hubba";
char* THAT_WHICH_WILL_BE_HUBBAD = "Zoot";

const uint8_t NUMBER_OF_HUBBA_REPETITIONS = 2;
const uint8_t NUMBER_OF_ZOOT_REPETITIONS = 2;
const uint8_t NUMBER_OF_UNIQUE_VERBS_AND_NOUNS = 2;
char* FORM_OF_MEDIA_BEING_REQUESTED = "lyrics";

static int INCREMENT_SIZE = 1;
char* IDENTIFIER = "The";
char* PREPOSITION = "to";


int main()
{
    uint8_t countOuter, countInner;
    char songName[MAXSTRLEN_SONGNAME], request[MAXSTRLEN_REQUEST];


    for (countOuter =0; countOuter <= NUMBER_OF_UNIQUE_VERBS_AND_NOUNS; countOuter += INCREMENT_SIZE)
    {
        for (countInner = 0; counter <= NUMBER_OF_HUBBA_REPETITIONS; countInner += INCREMENT_SIZE)
        {
            strcat(songName, THAT_WHICH_WILL_ZOOT);
            strcat(songName, SPACE_CHARACTER);
        }

        for (countInner = 0; counter <= NUMBER_OF_ZOOT_REPETITIONS; countInner += INCREMENT_SIZE)
        {
            strcat(songName, THAT_WHICH_WILL_BE_HUBBAD);
            strcat(songName, SPACE_CHARACTER);
        }
    }

    strcat(request, IDENTIFIER);
    strcat(request, SPACE_CHARACTER);
    strcat(request, FORM_OF_MEDIA_BEING_REQUESTED);
    strcat(request, SPACE_CHARACTER)
    strcat(request, PREPOSTITION);
    strcat(request, songName);

    printf("%s\n", request);
}

Name: >>12 2009-10-19 0:27

I was wrong, I have been OUT-ENTERPRISED and I feel kind of bad about it :( ...

Name: Anonymous 2009-10-19 1:20

guaranteed compatible all the way to MIT scheme
(display "Hubba hubba zoot zoot
Num
Deba uba zat zat
Num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-num
Hubba hubba zoot zoot
Num
Deba uba zat zat
Num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-hoorepa hoorepa
HAH
A-huh-hoorepa a-num num
A-num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-hoorepa hoorepa a-huh-hoorepa
HAH
A-num num
A-num
Hubba hubba zoot zoot
A-huh zoot a-huh
Deba uba zat zat a-num num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
Num
A-hoorepa hoorepa a-huh-hoorepa a-num num
Deba uba zat zat
A-hoorepa hoorepa a-huh-hoorepa a-num num
a-num
Hubba hubba zoot zoot
deba uba zat zat
HAH
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
Hubba hubba zoot zoot
Duuh
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
HAH
A-num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
Hubba hubba zoot zoot
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
HAH
Hubba hubba zoot zoot
Deba uba zat zat a-num num
HOH
Hubba hubba zoot zoot
Hubba hubba mo-re mo-re
Deba uba zat zat a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-hoorepa hoorepa a-huh-hoorepa a-num num
A-num"

Name: Anonymous 2009-10-19 1:21

closing paren

Name: Anonymous 2009-10-19 1:29

(princ "Hubba Hubba Zoot Zoot.")

Name: Anonymous 2009-10-19 1:42

var lyric = "hubba hubba zoot zoot"; alert(lyric);

Name: Anonymous 2011-01-31 21:06

<-- check em dubz

Name: Anonymous 2011-02-03 1:17

Name: tray 2012-03-14 16:26

you better be

Name: tray 2012-03-14 16:27

you better be

Don't change these.
Name: Email:
Entire Thread Thread List