博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
几乎所有编程语言的hello, world程序(1)
阅读量:4705 次
发布时间:2019-06-10

本文共 40294 字,大约阅读时间需要 134 分钟。

简介

“hello, world”程序是指在电脑屏幕上打印/输出”hello, world”这行字符串的应用程序。该范例最早出自1972年由贝尔实验室成员布莱恩柯林汉撰写的内部技术档案”A Tutorial Introduction to the Language B”中,不久同作者于1974年所写的”Programming in C: A Tutorial”也使用了这个范例,而以本文档所改写的《C语言程序设计》也保留了这个范例。

但是需要注意的是,Hello World的标准程序是”hello, world”,没有双引号和惊叹号,全部小写,并且在逗号后留有空格。

虽然都来自网络……但排版了好久好久好久……………………

1C-Enterprise

Message("Hello, World!");

4Test

testcase printHelloWorld()    print("Hello World!")

ABAP4

REPORT ZHB00001.*Hello world in ABAP/4 *WRITE: 'Hello world'.

ACPI Source Language

Scope(\) {    Method(_WAK) {        Store ("Hello World", Debug)        Return(Package(2){
0x00000000,0}) } }

Action!

PROC Main() PrintE("Hello World!")RETURN

ActionScript 3.0

var t:TextField=new TextField();t.text="Hello World!";addChild(t);

Actionscript-Flash5

trace ("Hello World");

ActionScript-Flash8

class HelloWorld{
private var helloWorldField:TextField; public function HelloWorld( mc:MovieClip ) {
mc.helloWorldField = mc.createTextField("helloWorldField", mc.getNextHighestDepth(), 0, 0, 100, 100); mc.helloWorldField.autoSize = "left"; mc.helloWorldField.html = true; mc.helloWorldField.htmlText = 'Hello World!'; }}// on a frameimport HelloWorld;var hw:HelloWorld = new HelloWorld( this );

Actionscript-FlashMX

// Hello World in Actionscript (Flash MX onwards) _root.createTextField("mytext",1,100,100,300,100);mytext.multiline = true;mytext.wordWrap = true;mytext.border = false;myformat = new TextFormat();myformat.color = 0xff0000;myformat.bullet = false;myformat.underline = true;mytext.text = "Hello World!";mytext.setTextFormat(myformat);

Ada

-- Hello World in Adawith Text_IO;procedure Hello_World isbegin  Text_IO.Put_Line("Hello World!");end Hello_World;

ADVPL

// Hello World in ADVPLUser Function Hello()Local cMsg := "Hello, world!"conout(cMsg)MsgInfo(cMsg)Return

Algol-60

'BEGIN'   'COMMENT' Hello World in Algol 60;    OUTPUT(4,'(''('Hello World!')',/')')'END'

Algol-68

( # Hello World in Algol 68 # print(("Hello World!",newline)))

Alpha-Five-Xbasic

' Hello World in Alpha Five Xbasicui_msg_box("The 'Hello World' Collection", "Hello World", UI_ATTENTION_SYMBOL)

amharic

// Hello World in Clipper? "Hello World"

Amiga-E

-> Hello World in Amiga-E PROC main() IS WriteF('Hello World\n')

AMOS

Back to index Rem Hello world in AMOSPrint "Hello world!"

AngelScript

// Hello world in AngelScriptvoid main() { print("Hello world\n"); }

Ante

9♦8♥J♦A♦2♣3♥7♠J♦A♦7♦J♦J♦A♦3♦J♦5♥6♦4♥J♥A♥6♠6♠J♥A♦8♦J♦A♦8♠J♦A♦3♦J♦A♦6♠J♦A♦8♠J♦A♥3♦2♠J♥A♥2♣6♠J♥

APC

// Hello World in the APC language for probesprobe program{    on_entry log ("Hello, world!\n");}

APL

⍝ Hello World in APL⎕←\'Hello World\'

AppleScript

-- "Hello World" in AppleScript:display dialog "Hello World"

Arena

// Hello world in Arenaprint("Hello World!");

Argh!

Hello World in Argh!. No comment character exists.j       worldlppppppPPPPPPsrfj hello,      *  j              qPh

ArnoldC

IT'S SHOWTIMETALK TO THE HAND "Hello World"YOU HAVE BEEN TERMINATED

ASP-CSharp

<% @ Page Language="C#" %><% ="Hello World!" %>

ASP-JavaScript

<%@ language="javascript" %><%Response.Write('Hello World!');%>

ASP-VBE

ASP-VBS

Hello World for Microsoft ASP (in VBScript)<%@ language="vbscript" %><%Response.write "Hello World!"%>

ASP.NET

<%= "Hello World!" %>

Assembler-6502-AppleII

***********************************                                **      HELLO WORLD FOR 6502      **    APPLE ][, MERLIN ASSEMBLER  **                                ***********************************STROUT  EQU $DB3A ;OUTPUTS AY-POINTED NULL TERMINATED STRING    LDY #>HELLO    LDA #

Assembler-6502-C64

; Hello World for 6502 Assembler (C64)ldy #0beq inloop:jsr $ffd2inyin:lda hello,ybne looprtshello: .tx "Hello World!"       .by 13,10,0

Assembler-68000-Amiga

; Hello World in 68000 Assembler for dos.library (Amiga)        move.l  #DOS        move.l  4.w,a6        jsr     -$0198(a6)      ;OldOpenLibrary        move.l  d0,a6        beq.s   .Out        move.l  #HelloWorld,d1A)      moveq   #13,d2        jsr     -$03AE(a6)      ;WriteCharsB)      jsr     -$03B4          ;PutStr        move.l  a6,a1        move.l  4.w,a6        jsr     -$019E(a6)      ;CloseLibrary.Out    rtsDOS          dc.b    'dos.library',0HelloWorld   dc.b    'Hello World!',$A,0

Assembler-68000-AtariST

; Hello World in 68000 Assembler (Atari ST)     move.l #helloworld,-(A7)     move   #9,-(A7)     trap   #1     addq.l #6,A7     move   #0,-(A7)     trap   #1helloworld:     dc.b "Hello World!",$0d,$0a,0

Assembler-68008

; Hello World in 68008 Assembler (Sinclar QL)     move.l #0,a0     lea.l  mess,a1     move.w $d0,a2     jsr    (a2)     rtsmess dc.w   12     dc.b   'Hello World!',10     end

Assembler-8051

-- Hello World in Assembler for the Intel 8051 (MSC51) Org 0   mov dptr,#msg   mov R0,#30h  loop:   clr a   movc a,@a+dptr   jz end   mov @R0,a   inc R0   inc dptr   sjmp  loopend:    jmp $msg:    db 'Hello World",0

Assembler-ARM

; Hello World in ARM code assembler, with RISC OS software interruptSWI "OS_WriteS"EQUS "Hello World!"EQUB 0ALIGNMOV PC,R14

Assembler-Darwin-PPC

; Hello World in Assembler for the Darwin Power-PC.data.cstring.align 2msg:.asciz "Hello world!\n"len = . - msg.text.align 2.globl _start_start:li r0,4li r3,1lis r4,ha16(msg)ori r4,r4,lo16(msg)li r5,lenscli r0,1li r3,0sc

Assembler-DG-Nova

.TITL HELLO02                      ; "HELLO, WORLD" FOR NOVA RUNNING RDOS03                      ; USES PCHAR SYSTEM CALL04                      .NREL05                      .ENT START0607              START:08 00000'022424 DOCHAR: LDA 0,@PMSG     ; LOAD AC0 WITH NEXT CHARACTER,09 00001'101015         MOV# 0,0,SNR    ; TEST AC0;10 00002'000412          JMP DONE ; SKIPPED IF NONZERO11 00003'006017         .SYSTM12 00004'010000         .PCHAR          ; PRINT FIRST13 00005'000413          JMP ER ; SKIPPED IF OK14 00006'101300         MOVS 0,0        ; SWAP BYTES15 00007'006017         .SYSTM16 00010'010000         .PCHAR          ; PRINT SECOND17 00011'000407          JMP ER ; SKIPPED IF OK18 00012'010412         ISZ PMSG        ; POINT TO NEXT WORD19 00013'000765         JMP DOCHAR      ; GO AROUND AGAIN2021 00014'006017 DONE:   .SYSTM          ; NORMAL EXIT22 00015'004400         .RTN23 00016'000402          JMP ER24 00017'063077         HALT25 00020'006017 ER:     .SYSTM          ; ERROR EXIT26 00021'006400         .ERTN27 00022'063077          HALT28 00023'063077         HALT2930 00024'000025'PMSG:   .+1     ; ADDRESS OF FIRST WORD OF TEXT31                      ; NOTE BYTES ARE PACKED RIGHT-TO-LEFT BY DEFAULT32 00025'042510         .TXT /HELLO, WORLD!<15><12>/ ; THAT'S CR LF33       04611434       02611735       05344036       05111737       04211438       00644139       00001240 00035'000000         0 ; FLAG WORD TO END STRING4142                      .END START

Assembler-HLA

; Hello World for Intel compatible High Level Assemblerprogram HELLO;       #include( "stdlib.hhf" );begin HELLO;       stdout.put("Hello World",nl);end HELLO;

Assembler-IBM-370

ITLE 'Hello World for IBM Assembler/370 (VM/CMS)'HELLO    STARTBALR  12,0USING *,12*WRTERM 'Hello World!'*SR    15,15BR    14*END   HELLO

Assembler-Intel

; Hello World for Intel Assembler (MSDOS)mov ax,csmov ds,axmov ah,9mov dx, offset Helloint 21hxor ax,axint 21hHello:  db "Hello World!",13,10,"$"

Assembler-Itanium

/* Hello world for IA64 (Itanium) Assembly */.HW:        stringz "Hello World"        .text        .align 16        .global main#        .proc main#main:        .prologue 14, 32        .save ar.pfs, r33        alloc r33 = ar.pfs, 0, 4, 1, 0        .vframe r34        mov r34 = r12        adds r12 = -16, r12        mov r35 = r1        .save rp, r32        mov r32 = b0        .body        addl r14 = @ltoffx(.HW), r1        ;;        ld8.mov r14 = [r14], .HW        ;;        st8 [r34] = r14        ld8 r36 = [r34]        br.call.sptk.many b0 = puts#        mov r1 = r35        ;;        mov ar.pfs = r33        mov b0 = r32        .restore sp        mov r12 = r34        br.ret.sptk.many b0

Assembler-Linux

;; Hello World for the nasm Assembler (Linux)    SECTION .data    msg db  "Hello, world!",0xa ;     len equ     $ - msg    SECTION .text    global mainmain:        mov     eax,4       ; write system call        mov     ebx,1           ; file (stdou)        mov     ecx,msg         ; string        mov     edx,len         ; strlen    int     0x80        ; call kernel    mov eax,1       ; exit system call        mov     ebx,0              int     0x80        ; call kernel

Assembler-MIPS

.globl mainmain:   jal hwbody              #call Hello Word Procedure       trap 10                 #exithwbody: addi $30, $30,-4        #we need to preserve       sw $4, 0($30)           #existing values in register 4       addi $4,$0,72           # H       trap 101       addi $4,$0,101          # e       trap 101       addi $4,$0,108          # l       trap 101       trap 101                # l       addi $4,$0,111          # o       trap 101       addi $4,$0,32           # 
trap 101 addi $4,$0,87 # W trap 101 addi $4,$0,111 # o trap 101 addi $4,$0,114 # r trap 101 addi $4,$0,108 # l trap 101 addi $4,$0,100 # d trap 101 addi $4,$0,33 # ! trap 101 addi $4,$0,10 # \n trap 101done: lw $4, 0($30) #restore values addi $30, $30, 4 #in register 4 jr $31 #return to the main

Assembler-MMIX

*   Hello World in Assembler *   for the MMIX Computer        LOC   #100Main   GETA  $255,String       TRAP  0,Fputs,StdOut       TRAP  0,Halt,0String BYTE  "Hello, world!",#a,0

Assembler-PA-RISC

// Hello World written in PA-RISC 2.0 assembly code    .LEVEL  2.0N    .SPACE  $TEXT$,SORT=8    .SUBSPA $CODE$,QUAD=0,ALIGN=4,ACCESS=0x2c,CODE_ONLY,SORT=24main    .PROC    .CALLINFO CALLER,FRAME=16,SAVE_RP,ORDERING_AWARE        .ENTRY        STW     %r2,-20(%r30)   ;offset 0x0        LDO     64(%r30),%r30   ;offset 0x4        ADDIL   LR'M$3-$global$,%r27,%r1        ;offset 0x8        LDO     RR'M$3-$global$(%r1),%r1        ;offset 0xc        STW     %r1,-56(%r30)   ;offset 0x10        ADDIL   LR'M$3-$global$+16,%r27,%r1     ;offset 0x14        LDO     RR'M$3-$global$+16(%r1),%r26    ;offset 0x18        LDW     -56(%r30),%r25  ;offset 0x1c        LDIL    L'printf,%r31   ;offset 0x20        .CALL   ARGW0=GR,ARGW1=GR,RTNVAL=GR     ;in=25,26;out=28;        BE,L    R'printf(%sr4,%r31),%r31        ;offset 0x24        COPY    %r31,%r2        ;offset 0x28        LDW     -84(%r30),%r2   ;offset 0x2c        BVE     (%r2)   ;offset 0x30        .EXIT        LDO     -64(%r30),%r30  ;offset 0x34    .PROCEND    ;    .SPACE  $TEXT$    .SUBSPA $CODE$    .SPACE  $PRIVATE$,SORT=16    .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=0x1f,SORT=16M$3    .ALIGN  8    .STRINGZ    "Hello World"    .BLOCK  4    .STRINGZ    "%s\n"    .IMPORT $global$,DATA    .SPACE  $TEXT$    .SUBSPA $CODE$    .EXPORT main,ENTRY,PRIV_LEV=3,LONG_RETURN    .IMPORT printf,CODE    .END

Assembler-PDP11

;       Hello World in Assembler for the DEC PDP-11 with the;   RSX-11M-PLUS operating system;        .title Hello        .ident /V0001A/        .mcall qiow$s, exit$s        .psect $code,ro,istart:  qiow$s #5,#5,,,,<#str, #len, #40>        exit$s        .psect $data,ro,dstr:    .ascii / Hello World!/        len=.-str        .end start

Assembler-PDP8

/ Hello World in Assembler for the DEC PDP-8*200hello,    cla cll        tls            / tls to set printer flag.        tad charac    / set up index register        dca ir1        / for getting characters.        tad m6        / set up counter for        dca count    / typing characters.next,    tad i ir1    / get a character.        jms type    / type it.        isz count    / done yet?        jmp next    / no: type another.        hlttype,    0            / type subroutine        tsf        jmp .-1        tls        cla        jmp i typecharac,    .            / used as initial value of ir1        310 / H        305 / E        314 / L        314 / L        317 / O        254 / ,        240 /        327 / W        317 / O        322 / R        314 / L        304 / D        241 / !m6,        -15count,    0ir1 = 10$

Assembler-VP

; Hello World in VP Assembler for intent (Amiga Anywhere).include 'tao'tool 'home/hello',VP,TF_MAIN,8192,0    ent (-:-)        qcall lib/print,(hello_world.p : i~)        ret ()    entend    datahello_world:    dc.b "Hello World!",ASCII_LF,0toolend

Assembler-Win32

; Hello world in Assembler for the Win32 architectureTITLE Hello world in win32. TasmVERSION T310Model use32 Flat,StdCallstart_code segment byte public 'code' use32begin: Call MessageBox, 0, offset sHallo, offset caption, 0 Call ExitProcess, 0start_code Endsstart_data segment byte public 'data' use32sHallo  db 'Hello world',0caption db "Hi",0start_data EndsEnd begin

Assembler-z390

; Hello World for z390 IBM compatible mainframe assemblerHELLO CSECT     USING *,15     WTO 'Hello World'     BR 14     END

Assembler-Z80-Console

; This is a "Hello World" program for Z80 and TMS9918 / TMS9928 / TMS9929 /; V9938 or V9958 VDP.; That means that this should work on SVI, MSX, Colecovision, Memotech,; and many other Z80 based home computers or game consoles.;; Because we don't know what system is used, we don't know where RAM; is, so we can't use stack in this program.;; This version of Hello World was written by Timo "NYYRIKKI" Soilamaa; 17.10.2001;;----------------------------------------------------------------------; Configure this part:DATAP: EQU #98 ; VDP Data port #98 works on all MSX models; (TMS9918/TMS9929/V9938 or V9958); #80 works on SVI ; (for other platforms you have to figure this out by your self)CMDP: EQU #99 ; VDP Command port #99 works on all MSX models; (TMS9918/TMS9929/V9938 or V9958); #81 works on SVI; (for other platforms you have to figure this out by your self);-----------------------------------------------------------------------; Program starts here:ORG 0 ; Z80 starts always from here when power is turned onDI ; We don't know, how interrupts works in this system, so we disable them.; Let's set VDP write address to #0000XOR AOUT (CMDP),ALD A,#40OUT (CMDP),A; Now let's clear first 16Kb of VDP memoryLD B,0LD HL,#3FFFLD C,DATAPCLEAR:OUT (C),BDEC HLLD A,HOR LNOP ; Let's wait 8 clock cycles just in case VDP is not quick enough.NOPJR NZ,CLEAR; Now it is time to set up VDP registers:;----------------------------------------; Register 0 to #0;; Set mode selection bit M3 (maybe also M4 & M5) to zero and ; disable external video & horizontal interruptLD C,CMDPLD E,#80OUT (C),AOUT (C),E;---------------------------------------- ; Register 1 to #50;; Select 40 column mode, enable screen and disable vertical interruptLD A,#50INC EOUT (C),AOUT (C),E;---------------------------------------- ; Register 2 to #0;; Set pattern name table to #0000XOR AINC EOUT (C),AOUT (C),E;---------------------------------------- ; Register 3 is ignored as 40 column mode does not need color table;INC E;---------------------------------------- ; Register 4 to #1; Set pattern generator table to #800INC AINC EOUT (C),AOUT (C),E;---------------------------------------- ; Registers 5 (Sprite attribute) & 6 (Sprite pattern) are ignored ; as 40 column mode does not have spritesINC EINC E;---------------------------------------- ; Register 7 to #F0; Set colors to white on blackLD A,#F0INC EOUT (C),AOUT (C),E;----------------------------------------; Let's set VDP write address to #808 so, that we can write; character set to memory; (No need to write SPACE it is clear char already)LD A,8OUT (C),ALD A,#48OUT (C),A; Let's copy character setLD HL,CHARSLD B, CHARS_END-CHARSCOPYCHARS:LD A,(HL)OUT (DATAP),AINC HLNOP ; Let's wait 8 clock cycles just in case VDP is not quick enough.NOPDJNZ COPYCHARS; Let's set write address to start of name tableXOR AOUT (C),ALD A,#40OUT (C),A; Let's put characters to screenLD HL,ORDERLD B,ORDER_END-ORDERCOPYORDER:LD A,(HL)OUT (DATAP),AINC HLJR OVERNMINOPNOP; Here is address #66, that is entry for NMIRETN ;Return from NMIOVERNMI:DJNZ COPYORDER; The endHALT; Character set:; --------------ORDER:DEFB 1,2,3,3,4,0,5,4,6,3,7ORDER_END:CHARS:; HDEFB %10001000DEFB %10001000DEFB %10001000DEFB %11111000DEFB %10001000DEFB %10001000DEFB %10001000DEFB %00000000; eDEFB %00000000DEFB %00000000DEFB %01110000DEFB %10001000DEFB %11111000DEFB %10000000DEFB %01110000DEFB %00000000; lDEFB %01100000DEFB %00100000DEFB %00100000DEFB %00100000DEFB %00100000DEFB %00100000DEFB %01110000DEFB %00000000; oDEFB %00000000DEFB %00000000DEFB %01110000DEFB %10001000DEFB %10001000DEFB %10001000DEFB %01110000DEFB %00000000; WDEFB %10001000DEFB %10001000DEFB %10001000DEFB %10101000DEFB %10101000DEFB %11011000DEFB %10001000DEFB %00000000; rDEFB %00000000DEFB %00000000DEFB %10110000DEFB %11001000DEFB %10000000DEFB %10000000DEFB %10000000DEFB %00000000; dDEFB %00001000DEFB %00001000DEFB %01101000DEFB %10011000DEFB %10001000DEFB %10011000DEFB %01101000DEFB %00000000chars_end:

Assembler-ZX81

; Hello World in Assembler for the ZX81 (Zilog Z80)          CALL SPRINT          DEFM HELLO WORLD.          DEFB FF          RETSPRINT    POP HL          LD A,(HL)          INC HL          PUSH HL          CP FF          RET Z          CALL PRINT          JR SPRINT

Asterisk

;; Hello world in Asteriskexten => s,1,NoOp(Hello World)

ATS

// Hello world in ATSimplement main () = begin  print ("Hello, world!"); print_newline ()end

AutoHotkey

; Hello World in AutoHotkeyMsgbox Hello, World!
AutoIT3
;Hello, World for AutoIT3  http://www.autoitscript.commsgbox(0,"Hello World",0)

AviSynth

# Hello World for AviSynth video editorBlankClip()Subtitle("Hello, world!")

AWK

# Hello world in AWKBEGIN {  print "Hello World!"}

B

/* Hello World in B */main() {  extern a, b, c;  putchar (a); putchar (b); putchar (c); putchar ('!*n');}a 'hell' ;b 'o, w' ;c 'orld' ;

BAL

Hello World in IBM mainframe Basic Assembler Language (BAL)HELLO    CSECT         STM   R14,R12,12(R13)         LR    R12,R15         USING HELLO,R12         LA    R10,SAVEAREA         ST    R13,4(R10)         ST    R10,8(R13)         LR    R13,R10*         WTO   'HELLO WORLD',ROUTCDE=1*         L     R13,4(R13)         LM    R14,R12,12(R13)         SR    R15,R15         BCR   B'1111',R14*SAVEAREA DS    18F         LTORGR0       EQU   0R1       EQU   1R2       EQU   2R3       EQU   3R4       EQU   4R5       EQU   5R6       EQU   6R7       EQU   7R8       EQU   8R9       EQU   9R10      EQU   10R11      EQU   11R12      EQU   12R13      EQU   13R14      EQU   14R15      EQU   15         END   HELLO

BASIC-PICAXE

' Hello World in PICAXE BASICSymbol TX_PIN = 0Symbol TX_BAUD = N2400SerOut TX_PIN, TX_BAUD, ( "Hello World", CR, LF )

BASIC

10 REM Hello World in BASIC20 PRINT "Hello World!"

bc

#!/usr/bin/bc -q# Hello World for the Unix "bc" calculatorprint "Hello World!\n"

BCPL

// Hello world in BCLPGET "libhdr"LET start() = VALOF$( writes("Hello world*N")   RESULTIS 0$)

BeanShell

// Hello World in BeanShellprint ("Hello World!");

Befunge

v Hello World in Befunge>"dlroW olleH",,,,,,,,,,,@

Beta

{ *** Hello World in BETA ***}(#  do     'Hello World!'->putLine#)

BibTex

%Hello world in BibTexENTRY{author}{}{}FUNCTION {hello.world}{   "Hello World!" write$ newline$}READ EXECUTE {hello.world}

BIT

Hello world in BIT. No comments are possible in this language.LINENUMBERZEROCODEPRINTZEROGOTOONELINENUMBERONECODEPRINTONEGOTOONEZEROLINENUMBERONEZEROCODEPRINTZEROGOTOONEONELINENUMBERONEONECODEPRINTZEROGOTOONEZEROZEROLINENUMBERONEZEROZEROCODEPRINTONEGOTOONEZEROONELINENUMBERONEZEROONECODEPRINTZEROGOTOONEONEZEROLINENUMBERONEONEZEROCODEPRINTZEROGOTOONEONEONELINENUMBERONEONEONECODEPRINTZEROGOTOONEZEROZEROZEROLINENUMBERONEZEROZEROZEROCODEPRINTZEROGOTOONEZEROZEROONELINENUMBERONEZEROZEROONECODEPRINTONEGOTOONEZEROONEZEROLINENUMBERONEZEROONEZEROCODEPRINTONEGOTOONEZEROONEONELINENUMBERONEZEROONEONECODEPRINTZEROGOTOONEONEZEROZEROLINENUMBERONEONEZEROZEROCODEPRINTZEROGOTOONEONEZEROONELINENUMBERONEONEZEROONECODEPRINTONEGOTOONEONEONEZEROLINENUMBERONEONEONEZEROCODEPRINTZEROGOTOONEONEONEONELINENUMBERONEONEONEONECODEPRINTONEGOTOONEZEROZEROZEROZEROLINENUMBERONEZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROZEROZEROONELINENUMBERONEZEROZEROZEROONECODEPRINTONEGOTOONEZEROZEROONEZEROLINENUMBERONEZEROZEROONEZEROCODEPRINTONEGOTOONEZEROZEROONEONELINENUMBERONEZEROZEROONEONECODEPRINTZEROGOTOONEZEROONEZEROZEROLINENUMBERONEZEROONEZEROZEROCODEPRINTONEGOTOONEZEROONEZEROONELINENUMBERONEZEROONEZEROONECODEPRINTONEGOTOONEZEROONEONEZEROLINENUMBERONEZEROONEONEZEROCODEPRINTZEROGOTOONEZEROONEONEONELINENUMBERONEZEROONEONEONECODEPRINTZEROGOTOONEONEZEROZEROZEROLINENUMBERONEONEZEROZEROZEROCODEPRINTZEROGOTOONEONEZEROZEROONELINENUMBERONEONEZEROZEROONECODEPRINTONEGOTOONEONEZEROONEZEROLINENUMBERONEONEZEROONEZEROCODEPRINTONEGOTOONEONEZEROONEONELINENUMBERONEONEZEROONEONECODEPRINTZEROGOTOONEONEONEZEROZEROLINENUMBERONEONEONEZEROZEROCODEPRINTONEGOTOONEONEONEZEROONELINENUMBERONEONEONEZEROONECODEPRINTONEGOTOONEONEONEONEZEROLINENUMBERONEONEONEONEZEROCODEPRINTZEROGOTOONEONEONEONEONELINENUMBERONEONEONEONEONECODEPRINTZEROGOTOONEZEROZEROZEROZEROZEROLINENUMBERONEZEROZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROZEROZEROZEROONELINENUMBERONEZEROZEROZEROZEROONECODEPRINTONEGOTOONEZEROZEROZEROONEZEROLINENUMBERONEZEROZEROZEROONEZEROCODEPRINTONEGOTOONEZEROZEROZEROONEONELINENUMBERONEZEROZEROZEROONEONECODEPRINTZEROGOTOONEZEROZEROONEZEROZEROLINENUMBERONEZEROZEROONEZEROZEROCODEPRINTONEGOTOONEZEROZEROONEZEROONELINENUMBERONEZEROZEROONEZEROONECODEPRINTONEGOTOONEZEROZEROONEONEZEROLINENUMBERONEZEROZEROONEONEZEROCODEPRINTONEGOTOONEZEROZEROONEONEONELINENUMBERONEZEROZEROONEONEONECODEPRINTONEGOTOONEZEROONEZEROZEROZEROLINENUMBERONEZEROONEZEROZEROZEROCODEPRINTZEROGOTOONEZEROONEZEROZEROONELINENUMBERONEZEROONEZEROZEROONECODEPRINTZEROGOTOONEZEROONEZEROONEZEROLINENUMBERONEZEROONEZEROONEZEROCODEPRINTONEGOTOONEZEROONEZEROONEONELINENUMBERONEZEROONEZEROONEONECODEPRINTZEROGOTOONEZEROONEONEZEROZEROLINENUMBERONEZEROONEONEZEROZEROCODEPRINTZEROGOTOONEZEROONEONEZEROONELINENUMBERONEZEROONEONEZEROONECODEPRINTZEROGOTOONEZEROONEONEONEZEROLINENUMBERONEZEROONEONEONEZEROCODEPRINTZEROGOTOONEZEROONEONEONEONELINENUMBERONEZEROONEONEONEONECODEPRINTZEROGOTOONEONEZEROZEROZEROZEROLINENUMBERONEONEZEROZEROZEROZEROCODEPRINTZEROGOTOONEONEZEROZEROZEROONELINENUMBERONEONEZEROZEROZEROONECODEPRINTONEGOTOONEONEZEROZEROONEZEROLINENUMBERONEONEZEROZEROONEZEROCODEPRINTONEGOTOONEONEZEROZEROONEONELINENUMBERONEONEZEROZEROONEONECODEPRINTONEGOTOONEONEZEROONEZEROZEROLINENUMBERONEONEZEROONEZEROZEROCODEPRINTZEROGOTOONEONEZEROONEZEROONELINENUMBERONEONEZEROONEZEROONECODEPRINTONEGOTOONEONEZEROONEONEZEROLINENUMBERONEONEZEROONEONEZEROCODEPRINTONEGOTOONEONEZEROONEONEONELINENUMBERONEONEZEROONEONEONECODEPRINTONEGOTOONEONEONEZEROZEROZEROLINENUMBERONEONEONEZEROZEROZEROCODEPRINTZEROGOTOONEONEONEZEROZEROONELINENUMBERONEONEONEZEROZEROONECODEPRINTONEGOTOONEONEONEZEROONEZEROLINENUMBERONEONEONEZEROONEZEROCODEPRINTONEGOTOONEONEONEZEROONEONELINENUMBERONEONEONEZEROONEONECODEPRINTZEROGOTOONEONEONEONEZEROZEROLINENUMBERONEONEONEONEZEROZEROCODEPRINTONEGOTOONEONEONEONEZEROONELINENUMBERONEONEONEONEZEROONECODEPRINTONEGOTOONEONEONEONEONEZEROLINENUMBERONEONEONEONEONEZEROCODEPRINTONEGOTOONEONEONEONEONEONELINENUMBERONEONEONEONEONEONECODEPRINTONEGOTOONEZEROZEROZEROZEROZEROZEROLINENUMBERONEZEROZEROZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROZEROZEROZEROZEROONELINENUMBERONEZEROZEROZEROZEROZEROONECODEPRINTONEGOTOONEZEROZEROZEROZEROONEZEROLINENUMBERONEZEROZEROZEROZEROONEZEROCODEPRINTONEGOTOONEZEROZEROZEROZEROONEONELINENUMBERONEZEROZEROZEROZEROONEONECODEPRINTONEGOTOONEZEROZEROZEROONEZEROZEROLINENUMBERONEZEROZEROZEROONEZEROZEROCODEPRINTZEROGOTOONEZEROZEROZEROONEZEROONELINENUMBERONEZEROZEROZEROONEZEROONECODEPRINTZEROGOTOONEZEROZEROZEROONEONEZEROLINENUMBERONEZEROZEROZEROONEONEZEROCODEPRINTONEGOTOONEZEROZEROZEROONEONEONELINENUMBERONEZEROZEROZEROONEONEONECODEPRINTZEROGOTOONEZEROZEROONEZEROZEROZEROLINENUMBERONEZEROZEROONEZEROZEROZEROCODEPRINTZEROGOTOONEZEROZEROONEZEROZEROONELINENUMBERONEZEROZEROONEZEROZEROONECODEPRINTONEGOTOONEZEROZEROONEZEROONEZEROLINENUMBERONEZEROZEROONEZEROONEZEROCODEPRINTONEGOTOONEZEROZEROONEZEROONEONELINENUMBERONEZEROZEROONEZEROONEONECODEPRINTZEROGOTOONEZEROZEROONEONEZEROZEROLINENUMBERONEZEROZEROONEONEZEROZEROCODEPRINTONEGOTOONEZEROZEROONEONEZEROONELINENUMBERONEZEROZEROONEONEZEROONECODEPRINTONEGOTOONEZEROZEROONEONEONEZEROLINENUMBERONEZEROZEROONEONEONEZEROCODEPRINTZEROGOTOONEZEROZEROONEONEONEONELINENUMBERONEZEROZEROONEONEONEONECODEPRINTZEROGOTOONEZEROONEZEROZEROZEROZEROLINENUMBERONEZEROONEZEROZEROZEROZEROCODEPRINTZEROGOTOONEZEROONEZEROZEROZEROONELINENUMBERONEZEROONEZEROZEROZEROONECODEPRINTONEGOTOONEZEROONEZEROZEROONEZEROLINENUMBERONEZEROONEZEROZEROONEZEROCODEPRINTONEGOTOONEZEROONEZEROZEROONEONELINENUMBERONEZEROONEZEROZEROONEONECODEPRINTZEROGOTOONEZEROONEZEROONEZEROZEROLINENUMBERONEZEROONEZEROONEZEROZEROCODEPRINTZEROGOTOONEZEROONEZEROONEZEROONELINENUMBERONEZEROONEZEROONEZEROONECODEPRINTONEGOTOONEZEROONEZEROONEONEZEROLINENUMBERONEZEROONEZEROONEONEZEROCODEPRINTZEROGOTOONEZEROONEZEROONEONEONELINENUMBERONEZEROONEZEROONEONEONECODEPRINTZEROGOTOONEZEROONEONEZEROZEROZEROLINENUMBERONEZEROONEONEZEROZEROZEROCODEPRINTZEROGOTOONEZEROONEONEZEROZEROONELINENUMBERONEZEROONEONEZEROZEROONECODEPRINTZEROGOTOONEZEROONEONEZEROONEZEROLINENUMBERONEZEROONEONEZEROONEZEROCODEPRINTONEGOTOONEZEROONEONEZEROONEONELINENUMBERONEZEROONEONEZEROONEONECODEPRINTZEROGOTOONEZEROONEONEONEZEROZEROLINENUMBERONEZEROONEONEONEZEROZEROCODEPRINTZEROGOTOONEZEROONEONEONEZEROONELINENUMBERONEZEROONEONEONEZEROONECODEPRINTZEROGOTOONEZEROONEONEONEONEZEROLINENUMBERONEZEROONEONEONEONEZEROCODEPRINTZEROGOTOONEZEROONEONEONEONEONELINENUMBERONEZEROONEONEONEONEONECODEPRINTONE

Blender

# Hello World as a 3D object in Blenderimport Blenderfrom Blender import Scene, Text3dtxt = Text3d.New("Text")txt.setText('Hello, world!')Scene.GetCurrent().objects.new(txt)Blender.Redraw()

BlitzMax

' Hello World for BlitzMaxGraphics 640,480,16While Not KeyHit(KEY_ESCAPE)    Cls    DrawText "Hello World",0,0    FlipEndWhile

BlitzPlus

; Hello World in Blitz Plus (graphical mode)Graphics 800,600,0,1Text 790, 600, "Hello World"WaitKey

BMC Remedy

char-set: windows-1252##  Hello World in BMC Remedy 7.0#  File exported Thu May  8 09:36:46 2008#begin active link   name           : Remedy_HelloWorld   timestamp      : 1210249958   export-version : 9   owner          : Demo   last-changed   : Demo   actlink-order  : 0   wk-conn-type   : 1   schema-name    : _1   actlink-mask   : 16   enable         : 1   permission     : 0   action {      message-type: 0      message-num : 10000      message-pane: 1      message-text: Hello World!!   }   object-prop    : 2\60016\4\1\0\60017\4\1\0\end

Boo

# Hello World in Booprint "Hello World"

Brainfuck

Hello World in Brainfuck

++++++++++[>+++++++>++++++++++>+++<<<-]>++.>+.+++++++

..+++.>++.<<+++++++++++++++.>.+++.——.——–.>+.

BS2000

/BEGIN-PROCEDURE LOGGING=N/REMARK "HELLO WORLD" IN BS2000 (SDF)/ASSIGN-SYSDTA TO-FILE=*SYSCMD/WRITE-TEXT 'HELLO WORLD!'/SET-JOB-STEP/ASSIGN-SYSDTA TO-FILE=*PRIMARY/END-PROCEDURE

BuddyScript

# Hello World in BuddyScript+ =AnythingPerfect  - Hello, world!

Byte Syze

Hello World in Byte Syze. No comments possible. The following is actually a hexdump of the binary source code. c7 3c 2a 3c 2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c 3c28 5c 2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c 3c 28 5c2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c 3c 28 5c 2a 2b2a 5c 3c 28 5c 2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c3c 28 5c 2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c 3c 285c 2a 2b 2a 5c 3c 28 5c 2a 2b 2a 5c 3c 28 5c 2a2b 2a 00 00 01 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 64 48 65 6c 6c 6f 2c 20 576f 72 6c 64 21 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

CSharp

//Hello World in C#class HelloWorld{
static void Main() { System.Console.WriteLine("Hello, World!"); }}

C++

// Hello World in C++ (pre-ISO)#include 
main(){ cout << "Hello World!" << endl; return 0;}

C++-CLI

// Hello World in C++/CLI for .NET

using namespace System;

void main()

{
Console::WriteLine(“Hello World”);
}

C++-Epoc

// Hello World in C++, Epoc style (for Symbian OS)#include 
#include
#include
class CHelloWorldAppUi;class CEikApplication;class CHelloWorldAppView;class CHelloWorldApplication : public CEikApplication { public: TUid AppDllUid() const; protected: CApaDocument* CreateDocumentL(); };class CHelloWorldDocument : public CEikDocument { public: static CHelloWorldDocument* NewL(CEikApplication& aApp); static CHelloWorldDocument* NewLC(CEikApplication& aApp); ~CHelloWorldDocument(){}; public: CEikAppUi* CreateAppUiL(); private: void ConstructL() {}; CHelloWorldDocument(CEikApplication& aApp){}; };class CHelloWorldAppUi : public CEikAppUi { public: void ConstructL(); CHelloWorldAppUi(){}; ~CHelloWorldAppUi(){}; };static const TUid KUidHelloWorldApp = {
0x10005B91};GLDEF_C TInt E32Dll(TDllReason ) { return KErrNone; }EXPORT_C CApaApplication* NewApplication() { return (new CHelloWorldApplication); }CApaDocument* CHelloWorldApplication::CreateDocumentL() { CApaDocument* document = CHelloWorldDocument::NewL(*this); return document; }TUid CHelloWorldApplication::AppDllUid() const { return KUidHelloWorldApp; }CHelloWorldDocument* CHelloWorldDocument::NewL(CEikApplication& aApp) { CHelloWorldDocument* self = NewLC(aApp); CleanupStack::Pop(self); return self; }CHelloWorldDocument* CHelloWorldDocument::NewLC(CEikApplication& aApp) { CHelloWorldDocument* self = new (ELeave) CHelloWorldDocument(aApp); CleanupStack::PushL(self); self->ConstructL(); return self; }CEikAppUi* CHelloWorldDocument::CreateAppUiL() { CEikAppUi* appUi = new (ELeave) CHelloWorldAppUi; return appUi; }void CHelloWorldAppUi::ConstructL() { BaseConstructL(); _LIT(message,"Hello!"); CAknInformationNote* informationNote = new (ELeave) CAknInformationNote; informationNote->ExecuteLD(message); }

C++-FLTK

// Hello World in C++-FLTK#include 
#include
#include
int main(int argc, char **argv) { Fl_Window *ventana = new Fl_Window(300,180); ventana->begin(); Fl_Box *box = new Fl_Box(20,40,260,100,"Hello World!"); box->labelsize(50); ventana->end(); ventana->show(argc, argv); return Fl::run();}

C++-gtkmm

// Hello World in C++ for the Gtk+ toolkit#include 
#include
#include
#include
void button_clicked(){ std::cout << "Hello, World !" << std::endl;}int main (int argc, char *argv[]){ Gtk::Main kit(argc, argv); Gtk::Window hello_window; Gtk::Button hello_button("Hello World"); hello_window.set_border_width(10); hello_window.add(hello_button); hello_button.signal_clicked().connect(sigc::ptr_fun(&button_clicked)); hello_button.show(); Gtk::Main::run(hello_window); return 0;}

C++-ISO

// Hello World in ISO C++#include 
int main(){ std::cout << "Hello World!" << std::endl;}

C++-MFC

// Hello World in C++ for Microsoft Foundation Classes// (Microsoft Visual C++).#include 
class CHello : public CFrameWnd{public: CHello() { Create(NULL,_T("Hello World!"),WS_OVERLAPPEDWINDOW,rectDefault); }};class CHelloApp : public CWinApp{public: virtual BOOL InitInstance();};BOOL CHelloApp::InitInstance(){ m_pMainWnd = new CHello(); m_pMainWnd->ShowWindow(m_nCmdShow); m_pMainWnd->UpdateWindow(); return TRUE;}CHelloApp theApp;

C++-Qt

// Hello World in C++ for the Qt framework#include 
#include
int main(int argc, char *argv[]){ QApplication a(argc, argv); QLabel l("Hello World!", 0); l.setCaption("Test"); l.setAlignment(Qt::AlignCenter); l.resize(300, 200); a.setMainWidget(&l); l.show(); return(a.exec());}

C-AL

OBJECT Codeunit 50000 HelloWorld{  PROPERTIES  {    OnRun=BEGIN            //Hello World in C/AL (Microsoft Business Solutions-Navision)            MESSAGE(Txt001);          END;  }  CODE  {    VAR      Txt001@1000000000 : TextConst 'ENU=Hello World';    BEGIN    END.  }}

C-AmigaAnywhere

/* Hello World in C for Amiga Anywhere 2 (AA2) */#include 
int aaMain(int argc, char **argv){ aaOpenDisplay(200, 200, 16, "Hello World", FAA_DISPLAY_WINDOW); aaDrawString(AA_DISPLAY_PIXMAP, "Hello, world!", 20, 20, AA_DEFAULT_FONT, 0xffff00, 0, FAA_FONT_INK, -1); aaUpdate(); aaWaitInput(); return 0;}

C-ANSI

/* Hello World in C, Ansi-style */#include 
#include
int main(void){ puts("Hello World!"); return EXIT_SUCCESS;}

C-Curses

/* Hello World in C for Curses */#include 
main(){ initscr(); addstr("Hello World!\n"); refresh(); endwin(); return 0;}

C-GEM

/* Hello World for C with GEM */#include 
main(){ appl_init(); form_alert(1,"[0][Hello World!][Ok]"); appl_exit(); return 0;}

C-Intuition

/* Hello World in C for Intution (Amiga GUI) */#include 
struct IntuitionBase *IntuitionBase = NULL;struct IntuiText hello_text = {-1,-1,JAM1,0,0,NULL,"Hello World!",NULL };struct IntuiText ok_text = {-1,-1,JAM1,0,0,NULL,"Ok",NULL };void main(void){ IntuitionBase = (struct IntuitionBase *) OpenLibrary("intuition.library", 0); AutoRequest(NULL, &hello_text, NULL, &ok_text, NULL, NULL, 100, 50); CloseLibrary(IntuitionBase);}

C-K+R

/* Hello World in C, K&R-style */main(){  puts("Hello World!");  return 0;}

C-Objective

/* Hello World in Objective-C.** Since the standard implementation is identical to K&R C,** a version that says hello to a set of people passed on** the command line is shown here.*/#include 
#include
int main(int argc,char **argv){ id set = [Set new]; argv++;while (--argc) [set add:[String str:*argv++]]; [set do:{ :each | printf("hello, %s!\n",[each str]); }]; return 0;}

C-OpenGL

/* "Hello World" in C using OGL - Open Graphics Library */#include 
#define font GLUT_BITMAP_HELVETICA_18#define tx "Hello World!"void text(void){ char *p, tex[] = tx; p = tex; glColor3d(1.0, 1.0, 0.0); glRasterPos2d(-.5, 0.); while(*p) glutBitmapCharacter(font, *p++);}void display(){ glClear(GL_COLOR_BUFFER_BIT); text(); glFlush();}void reshape(int width, int height){ glViewport(0, 0, width, height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(-1, 1, -1, 1, -1, 1); glMatrixMode(GL_MODELVIEW); display();}int main(int argc, char **argv){ glutInit(&argc, argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowPosition(50, 50); glutInitWindowSize(500, 500); glutCreateWindow("Hello World OpenGL"); glClearColor(0,0,0,0); glutDisplayFunc(display); glutReshapeFunc(reshape); glutMainLoop(); return 0;}

C-PresManager

/* Hello World for C with PresentationManager / OS/2 2.11  */#define INCL_WIN#include 
int main( void ){ HMQ hmq; hmq = WinCreateMsgQueue( 0, 0 ); WinMessageBox( HWND_DESKTOP, HWND_DESKTOP, (PSZ)"Hello World!", (PSZ)"", 0, MB_OK ); WinDestroyMsgQueue( hmq ); return 0;}

C-Windows

/* Hello world in C for MS-Windows */#include 
int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR CmdLine, int Show){ MessageBox(GetActiveWindow(), "Hello World!", "Hello Windows World", MB_OK); return 0;}

C-X11-Athena

/* Hello World in C with X11 using Athena widgets */#include 
#include
#include
main(int argc,char **argv){ XtAppContext app_context; Widget toplevel,hello; toplevel = XtVaAppInitialize(&app_context,"XHello",NULL,0, &argc,argv,NULL,NULL); hello = XtVaCreateManagedWidget("Hello World!",labelWidgetClass, toplevel,(void*)0); XtRealizeWidget(toplevel); XtAppMainLoop(app_context); return 0;}

Caché Object Script

HelloWorld  ;Hello World in Cache Object ScriptStart   ;    Write "Hello world"    Quit

CAML-Light

(* Hello World in CAML Light *)let hello =   print_string "Hello World!";;;

Casio BASIC

'Hello World in Casio-Basic. [new line symbol here (press EXE)]"Hello World!"

CDuce

(* Hello World in CDuce *)print "Hello World!\n";;

Centura

! Hello World in CenturaFunction: HelloWorldDescription:ReturnsParametersStatic VariablesLocal variablesActions Call SalMessageBox( 'Hello World','Message',MB_Ok)

Chef

Hello World Souffle.This recipe prints the immortal words "Hello world!", in a basically brute forceway. It also makes a lot of food for one person.Ingredients.72 g haricot beans101 eggs108 g lard111 cups oil32 zucchinis119 ml water114 g red salmon100 g dijon mustard33 potatoesMethod.Put potatoes into the mixing bowl. Put dijon mustard into the mixing bowl. Putlard into the mixing bowl. Put red salmon into the mixing bowl. Put oil intothe mixing bowl. Put water into the mixing bowl. Put zucchinis into the mixingbowl. Put oil into the mixing bowl. Put lard into the mixing bowl. Put lardinto the mixing bowl. Put eggs into the mixing bowl. Put haricot beans intothe mixing bowl. Liquefy contents of the mixing bowl. Pour contents of themixing bowl into the baking dish.Serves 1.

CICS-COBOL

-- Hello World in CICS COBOL000100        IDENTIFICATION DIVISION.                           000200        PROGRAM-ID. HELLO.                                 000300       * HELLO WORLD IN CICS COBOL.                        000400        AUTHOR. ROBERT GOSLING.                            000500        ENVIRONMENT DIVISION.                              000600        DATA DIVISION.                                     000700        WORKING-STORAGE SECTION.                           000800        01 WS-DATA-AREA PIC X(80) VALUE "HELLO WORLD!".    000900        PROCEDURE DIVISION.                                001000            EXEC CICS SEND FROM (WS-DATA-AREA) END-EXEC.   001100            EXEC CICS RETURN END-EXEC.

Clarion

!Hello World in Clarion   PROGRAM MAP END CODE MESSAGE('Hello World!') RETURN

Clean

// Hello World in Cleanmodule helloStart :: StringStart = "Hello World!\n"

Clipper

// Hello World in Clipper? "Hello World"

Clojure

; Hello world in Clojure(defn hello []  (println "Hello world!"))(hello)

CLP

/* Hello World in CLP for the IBM AS/400 */PGMSNDPGMMSG  MSG('Hello World !') MSGTYPE(*COMP)ENDPGM

CMake

# Hello World in CMakemessage(STATUS "Hello World!")

COBOL

* Hello World in COBOL*****************************IDENTIFICATION DIVISION.PROGRAM-ID. HELLO.ENVIRONMENT DIVISION.DATA DIVISION.PROCEDURE DIVISION.MAIN SECTION.DISPLAY "Hello World!"STOP RUN.****************************

Cobra

"""Hello world in Cobra"""class Hello    def main        print 'Hello, world.'

Cocoa

// Hello World in Cocoa Obj-C (OS X)#import 
int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSLog(@"Hello, World!"); [pool release]; return 0;}

CoDScript

// Hello world in CoDScriptmain(){     iPrintLnBold("Hello World!");}

ColdFusion

#message#

CommandScript

#Hello World in Command Script 3.1#Meta.Name: "Hello World"#Block(Main).Start    echo "Hello World!"#Block(Main).End

Common Lisp

;;; Hello world in Common Lisp(print "Hello World")

Console-Postscript

%% Hello World in Console PostScriptserverdict begin 0 exitserver/Courier findfont48 scalefont setfont22 22 moveto(Hello World!) showshowpage%% End

Cool

-- Hello World in Coolclass Main inherits IO{
main():Object{ out_string("Hello, world!\n") };};

CoolBasic

' Hello World in CoolBasicprint "hello world"wait key

CSS

/* Hello World in CSS */body:before {    content: "Hello World";}

CYBOL

转载于:https://www.cnblogs.com/NoMasp/p/4483259.html

你可能感兴趣的文章
Copy code from eclipse to word, save syntax.
查看>>
arguments.callee的作用及替换方案
查看>>
PHP echo 和 print 语句
查看>>
第一讲 一个简单的Qt程序分析
查看>>
Centos 6.5下的OPENJDK卸载和SUN的JDK安装、环境变量配置
查看>>
poj 1979 Red and Black(dfs)
查看>>
【.Net基础03】HttpWebRequest模拟浏览器登陆
查看>>
zTree async 动态参数处理
查看>>
Oracle学习之常见错误整理
查看>>
数据库插入数据乱码问题
查看>>
altium annotate 选项设置 complete existing packages
查看>>
【模式识别与机器学习】——SVM举例
查看>>
【转】IT名企面试:微软笔试题(1)
查看>>
IO流入门-第十章-DataInputStream_DataOutputStream
查看>>
DRF的分页
查看>>
Mysql 模糊匹配(字符串str中是否包含子字符串substr)
查看>>
python:open/文件操作
查看>>
流程控制 Day06
查看>>
Linux下安装Tomcat
查看>>
windows live writer 2012 0x80070643
查看>>