Tremulous Forum

Community => Off Topic => Topic started by: KillerWhale on October 28, 2009, 05:19:59 pm

Title: "Hello World" Series
Post by: KillerWhale on October 28, 2009, 05:19:59 pm
Code: [Select]
#include <stdio.h>

int main()
{
  printf( "Hello world, you should start posting 'hello world's in every language and in any method you can!\n" );
  getchar();
  return 0;
}
Title: Re: "Hello World" Series
Post by: n.o.s.brain on October 28, 2009, 05:40:48 pm
Code: [Select]
HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
Title: Re: "Hello World" Series
Post by: A Spork on October 28, 2009, 07:08:50 pm
public class HelloWorld

        public static void main(String args[])
        {
           System.out.println("Hello World");
        }
}
Title: Re: "Hello World" Series
Post by: kevlarman on October 28, 2009, 07:24:43 pm
Code: [Select]
(21646c726f77202c6f6c6c6548
===========================

                           O F
                           c
                           =
Title: Re: "Hello World" Series
Post by: Demolution on October 28, 2009, 07:52:03 pm
0100100001100101011011000110110001101111001000000 101011101101111011100100110110001100100
Title: Re: "Hello World" Series
Post by: A Spork on October 28, 2009, 09:59:44 pm
^Nice demo, way to use a binary translator(Which, btw, isn't very good binary)
Title: Re: "Hello World" Series
Post by: Taiyo.uk on October 28, 2009, 10:05:36 pm
Code: [Select]
        .file   "hw.c"       
        .section        .rodata
.LC0:
        .string "Hello World!"
        .text
.globl main
        .type   main, @function
main:
.LFB2:
        pushq   %rbp
.LCFI0:
        movq    %rsp, %rbp
.LCFI1:
        movl    $.LC0, %edi
        call    puts
        movl    $0, %eax
        leave
        ret
.LFE2:
        .size   main, .-main
        .section        .eh_frame,"a",@progbits
.Lframe1:
        .long   .LECIE1-.LSCIE1
.LSCIE1:
        .long   0x0
        .byte   0x1
        .string "zR"
        .uleb128 0x1
        .sleb128 -8
        .byte   0x10
        .uleb128 0x1
        .byte   0x3
        .byte   0xc
        .uleb128 0x7
        .uleb128 0x8
        .byte   0x90
        .uleb128 0x1
        .align 8
.LECIE1:
.LSFDE1:
        .long   .LEFDE1-.LASFDE1
.LASFDE1:
        .long   .LASFDE1-.Lframe1
        .long   .LFB2
        .long   .LFE2-.LFB2
        .uleb128 0x0
        .byte   0x4
        .long   .LCFI0-.LFB2
        .byte   0xe
        .uleb128 0x10
        .byte   0x86
        .uleb128 0x2
        .byte   0x4
        .long   .LCFI1-.LCFI0
        .byte   0xd
        .uleb128 0x6
        .align 8
.LEFDE1:
        .ident  "CC: (HR) 6.4.2 20081105 (Haos Redro 6.4.2-7)"
        .section        .note.HR-stack,"",@progbits
Title: Re: "Hello World" Series
Post by: Superpie on October 28, 2009, 10:30:12 pm
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Title: Re: "Hello World" Series
Post by: Hendrich on October 28, 2009, 11:03:45 pm
Code: [Select]
put "Hello World!"
Title: Re: "Hello World" Series
Post by: Baconizer on October 29, 2009, 12:28:17 am
Code: [Select]
-module(hw).
-export([helloworld/0]).

hello_world() ->
    io:format("Hello, World!~n").
Title: Re: "Hello World" Series
Post by: Knowitall66 on October 29, 2009, 12:44:36 am
default
{
    state_entry()
    {
        llSay(0, "Hello World");
    }
}


.... . .-.. .-.. --- /  .-- --- .-. .-.. -..


Uryyb Jbeyq


Hola Mundo


(LSL)
(Morse Code)
(Rot13)
(Spanish)
Title: Re: "Hello World" Series
Post by: mooseberry on October 29, 2009, 01:50:36 am
Code: [Select]
Import hello
Title: Re: "Hello World" Series
Post by: Demolution on October 29, 2009, 05:13:47 am
העלא וועלט

LZYRBMWPXW <-- Bonus points if you can tell me what I used.


P.S. What's wrong with my binary? :s
Title: Re: "Hello World" Series
Post by: your face on October 29, 2009, 05:43:43 am
Personally, I really liked your binary. <3
Title: Re: "Hello World" Series
Post by: Rocinante on October 29, 2009, 05:59:46 pm
Code: [Select]
#!/bin/bash
echo "Hello, world"
exit 0

Code: [Select]
#!/bin/tcsh
echo "Use a real shell."
exit 255
Title: Re: "Hello World" Series
Post by: CreatureofHell on October 29, 2009, 06:08:23 pm
Hello World
Title: Re: "Hello World" Series
Post by: Demolution on October 29, 2009, 08:13:39 pm
Hello World

One hell of a coding language. :>
Title: Re: "Hello World" Series
Post by: gimhael on October 29, 2009, 09:57:49 pm
It is written in /bin/cat.
Title: Re: "Hello World" Series
Post by: CreatureofHell on October 29, 2009, 10:32:52 pm
Hello World

One hell of a coding language. :>

Well the op did say that we should post it in any language we can so I posted it in English.  ;D
Title: Re: "Hello World" Series
Post by: Demolution on October 29, 2009, 11:19:08 pm
(http://www.signpuddle.net/mediawiki/images/5/54/Hello_world.png)

Code: [Select]
0080 1ce0 f8d4 f8ec 8746 f8ea f8fe 0080 32ea f89e f914 32e1 f897 f8fb 5ec0 f8b1 f901 b3b4 f8a9 f8e5 ec20

Code: [Select]
<sign lane="0">
<sym x="85" y="109">01-05-001-01-03-01</sym>
<sym x="107" y="127">02-05-006-01-01-07</sym>
</sign>
<sign lane="0">
<sym x="31" y="149">01-06-002-01-01-11</sym>
<sym x="24" y="124">01-06-002-01-01-02</sym>
<sym x="50" y="130">02-01-001-01-01-01</sym>
<sym x="42" y="102">02-10-003-01-04-05</sym>
</sign>
<punc>06-01-001-02-01-01</punc>

Code: [Select]
7392,85,109,34630,107,127
13034,31,149,13025,24,124,24256,50,130,46004,42,102
60448

Code: [Select]
f1 80 82 80 f1 81 b3 a0 f1 8f a3 94 f1 8f a3 ac f1 88 9d 86 f1 8f a3 aa f1 8f a3 be f1 80 82 80 f1 83 8b aa f1 8f a2 9e f1 8f a4 94 f1 83 8b a1 f1 8f a2 97 f1 8f a3 bb f1 85 bb 80 f1 8f a2 b1 f1 8f a4 81 f1 8b 8e b4 f1 8f a2 a9 f1 8f a3 a5 f1 8e b0 a0

http://www.signpuddle.net/mediawiki/index.php/Hello_world
Title: Re: "Hello World" Series
Post by: A Spork on October 29, 2009, 11:39:10 pm
Code: [Select]
import java.awt.*;
import java.applet.*;

public class HelloWorldv2 extends Applet {

public void paint(Graphics g)
{
g.drawString("                       d     ",20,20);
g.drawString("       e              l      ",20,40);
g.drawString("      l              r       ",20,60);
g.drawString("       l              o      ",20,80);
g.drawString("      e              W       ",20,100);
g.drawString("     H                       ",20,120);
g.drawString(" xxxxxxxxxxxxxxxxxxxxxxxx    ",20,140);
g.drawString(" x                  x    x   ",20,160);
g.drawString(" x      Java        x    x   ",20,180);
g.drawString(" x     is HOT!      xxxx     ",20,200);
g.drawString(" x                  x        ",20,220);
g.drawString(" x                  x        ",20,240);
g.drawString(" xxxxxxxxxxxxxxxxxxxx        ",20,260);

}


}
Title: Re: "Hello World" Series
Post by: Hendrich on October 30, 2009, 02:13:28 am
Quote
.... . .-.. .-.. --- / .-- --- .-. .-.. -..
Title: Re: "Hello World" Series
Post by: Snake on October 30, 2009, 02:41:16 am
print "Hello world on Python is pretty easy :<"
Title: Re: "Hello World" Series
Post by: Minimum on October 30, 2009, 07:41:21 am
lul i r say talkz hello wurld

What? You never said 'Coding' Language.
Title: Re: "Hello World" Series
Post by: Demolution on October 30, 2009, 05:14:12 pm
(http://farm1.static.flickr.com/194/472097903_b781a0f4f8.jpg)
Title: Re: "Hello World" Series
Post by: mooseberry on October 31, 2009, 12:24:23 am
print "Hello world on Python is pretty easy :<"

I allready did python.  ;)
Title: Re: "Hello World" Series
Post by: Winnie the Pooh on October 31, 2009, 01:09:52 am
Code: [Select]
#include <stdio.h>

int void main()
{
printf("H   W/nE   O/nL   R/nL   L/nO   D");
break;
}
Title: Re: "Hello World" Series
Post by: kevlarman on October 31, 2009, 02:25:44 am
Code: [Select]
#include <stdio.h>

int void main()
{
printf("H   W/nE   O/nL   R/nL   L/nO   D");
break;
}
yo i herd you like failing so you put a fail in your fail so you can fail while you fail.
Title: Re: "Hello World" Series
Post by: Winnie the Pooh on October 31, 2009, 04:26:21 am
yo i herd you like failing so you put-

Kevlar, I'm really happy for you and Imma let you finish and all but kanye had one of the best memes ever. EVER!
Title: Re: "Hello World" Series
Post by: Amanieu on October 31, 2009, 03:07:28 pm
Code: [Select]
dec ax
gs insb
insb
outsw
and [bx+0x6f],dh
db 0x72
db 0x6C
db 0x64
Title: Re: "Hello World" Series
Post by: Celestial_Rage on November 01, 2009, 02:24:49 am
Code: [Select]
#!/bin/bash
echo "Hello, world"
exit 0

Aww, I was going to use bash :(

Oh well, FoxProx, works fine..

Code: [Select]
print "Hello World"
end
Title: Re: "Hello World" Series
Post by: KillerWhale on November 01, 2009, 06:58:12 pm
Code: [Select]
Disp "HELLO WORLD"
OWNED TI-BASIC!
Title: Re: "Hello World" Series
Post by: Cadynum on November 01, 2009, 08:48:09 pm
Code: [Select]
main = putStrLn "Hello World"
Title: Re: "Hello World" Series
Post by: gimhael on November 01, 2009, 10:22:38 pm
Code: [Select]
main = putStrLn.unwords$["Hello","World"]
Title: Re: "Hello World" Series
Post by: MitSugna on November 03, 2009, 10:16:14 am
hell = require('helloWorld')
if hell =~ nil then hell.run()
else print('Hello World')
end
Title: Re: "Hello World" Series
Post by: A Spork on November 03, 2009, 08:35:03 pm
#include <iostream.h>
 
void main()
{
    cout << "Hello, world!";
}
Title: Re: "Hello World" Series
Post by: Amanieu on November 03, 2009, 08:58:08 pm
STOP ABUSING THE BIT SHIFT OPERATOR >:(
Title: Re: "Hello World" Series
Post by: AppleJuice on November 04, 2009, 07:00:53 pm
#include <iostream>

int main() {
   std::cout << "Hello, world!\n";
}

Fixed
Title: Re: "Hello World" Series
Post by: A Spork on November 04, 2009, 07:17:43 pm
Mine is C++, and it works.
(And your version fails btw, no return statement)
Title: Re: "Hello World" Series
Post by: AppleJuice on November 04, 2009, 07:20:57 pm
Meh, it works either way.
(And your version fails btw, no return statement)

No.
http://www2.research.att.com/~bs/bs_faq2.html
http://www2.research.att.com/~bs/bs_faq2.html#void-main

"In C++, main() need not contain an explicit return statement. In that case, the value returned is 0, meaning successful execution."
This also includes reasons as to why your version is not good.

There's some reading for you. :)

Btw, your version doesn't compile with g++ -ansi -pedantic -Wall
Title: Re: "Hello World" Series
Post by: A Spork on November 04, 2009, 07:29:09 pm
whatever.
It worked for me, and thats what I was taught.
Title: Re: "Hello World" Series
Post by: AppleJuice on November 04, 2009, 08:32:10 pm
Worked in which programming environment?
Title: Re: "Hello World" Series
Post by: A Spork on November 04, 2009, 09:56:53 pm
C++
Couldn't tell you what program off the top of my head....
Title: Re: "Hello World" Series
Post by: AppleJuice on November 04, 2009, 10:17:05 pm
C++

Dude, I obviously know it's C++...



someone use a Visual Basic GUI to track the IP
Title: Re: "Hello World" Series
Post by: 3of12 on November 04, 2009, 11:28:31 pm
Scratch that, wrong problem.
Title: Re: "Hello World" Series
Post by: IabzO.o on November 05, 2009, 02:00:31 am
C++

Dude, I obviously know it's C++...



someone use a Visual Basic GUI to track the IP

imsrybrobutitsnotsoobvious
Title: Re: "Hello World" Series
Post by: MitSugna on November 05, 2009, 04:06:23 am
#include <iostream>

int main() {
   std::cout << "Hello, world!" << std::endl;
   return 0;
}

Fixed
Dunno if fixed or correct but that is what I'd do
( Also using std::endl instead of '\\n' makes you look cooler :P )
Title: Re: "Hello World" Series
Post by: Bajsefar on November 15, 2009, 01:50:58 am
Hallo verden.