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

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

LSL

// Hello World in Linden Scripting Language (LSL)default{    state_entry()    {        llSay(0, "Hello World");    }}

Lua

# Hello World in Luaprint "Hello world"

m4

# Hello World for the m4 macro processorHello

MACRO-10

TITLE HELLO WORLD; HELLO WORLD IN MACRO 10 FOR TOPS-10ENTRY OUTPUTSEARCH UUOSYMLAB:    ASCIZ /HELLO WORLD/OUTPUT: OUTSTR LAB              ; OUTPUT MESSAGE        MONRT.                  ; RETURN TO MONITOR                  END OUTPUT

MACRO-11

;       "Hello, world!" in MACRO-11 for RT-11        .MCALL  .EXIT,.PRINTSTART:  .PRINT  #$1        .EXIT$1:     .ASCIZ  /Hello, world!/        .END    START

Macromedia-Flex

make

# Hello world as a makefileall:    @echo "Hello world!"

Malbolge

Hello World in Malbolge. No comment character exists.(=<`$9]7<5YXz7wT.3,+O/o'K%$H"'~D|#z@b=`{^Lx8%$Xmrkpohm-kNi;gsedcba`_^]\[ZYXWVUTSRQPONMLKJIHGFEDCBA@?>=<;:9876543s+O

MAMASH

/* Hello World in MAMASH */TQWD LGYEA NXKIA HELLO_WORLD )1(DWLH CXBZ_YKXID& HELLO_WORLD YED 'HELLO WORLD' .

Maple

# Hello World in Maple>> printf("Hello World!");

Mathematica

(* Hello World in Mathematica *)Hello[] := Print["Hello, World!"]

MATLAB

% Hello World in MATLAB.disp('Hello World');

Maxima

/*  Hello World in Maxima */disp("hello, world");

MAXScript

/*Hello World in MAXScript (the script language of 3ds Max).Hello World is both printed as text and in full 3D.*/Print "Hello World"Text text:"Hello World"

MDM Zinc

// Hello world in MDM Zincmdm.Dialogs.prompt("Hello World");mdm.Application.exit();

MEL

// Hello World in MEL scripting language for Alias Mayaproc helloWorld () {   print "Hello World!\n";}helloWorld;

MetaPost

% Hello World in MetaPostbeginfig(0);  label("Hello, world!", (10,10));endfig;

MEX

// "Hello, World!" in MEX for Maximus BBSvoid main(){  print(COLOR_WHITE,"Hello, World!\n");}

Microtik

#Hello World in Mikrotik RouterOS Scripting Host; :put ("Hello, World!");

mIRC-Alias

;Hello World for mIRC (alias section)helloworld: /echo -a Hello World!

mIRC-Commandline

; Hello World! for mIRC (command line version)echo Hello World!

mIRC-Script

;Hello World for mIRC scriptalias helloworld {  /echo -a Hello World!}

MivaScript

Hello World in Miva Script

MML-AXE10

Back to index ! Hello world program in MML for Ericsson's AXE10 telephone exchangeIOTXP:Hello World;

Modula-2

(* Hello World in Modula-2 *)MODULE HelloWorld;FROM InOut IMPORT WriteString,WriteLn;BEGIN  WriteString("Hello World!");  WriteLn;END HelloWorld.

Modula-3

(* Hello World in Modula-3 *)MODULE Hello EXPORTS Main;IMPORT IO;BEGIN IO.Put("Hello World!\n");END Hello.

MoHAA-Script

// Hello World in the Medal of Honor Allied Assault scripting languageiprintln "Hello World!"

MOO

"Hello World in MOO";player.location:announce_all("Hello, world!");

Mouse

~ Hello World in Mouse"HELLO, WORLD."$

MPD

# Hello World in MPD.resource helloworld()  write("Hello World")end

MS Small Basic

' Hello World in Microsoft Small BasicTextWindow.WriteLine("Hello, World")

MSDOS

@ECHO OFFREM Hello World for DOS batchECHO Hello World!

MSIL

//Hello World in MSIL (.NET assembler).assembly helloworld {}.class helloworld{ .method static void Main() cil managed {  .entrypoint  ldstr "Hello World!"  call void [mscorlib]System.Console::WriteLine(string)  ret }}

MuLisp

; Hello, World! in MuLisp(print 'Hello\,\ world\!)

Mumps

; Hello World in Mumps-M w !,"Hello World"

Natural

* Hello World in Natural (by Software AG)Write "Hello, World!".

Nemerle

// Hello World in Nemerle (a functional programming language for .NET)System.Console.WriteLine("Hello World");

newLISP

;; Hello World in newLISP(println "Hello World")

NewtonScript

// Hello World in NewtonScriptbaseview :=   {viewBounds: {left: -3, top: 71, right: 138, bottom: 137},    viewFlags: 581,    declareSelf: 'base,    _proto: protoFloatNGo,    debug: "baseview"   };textview := * child of baseview *   {text: "Hello World!",    viewBounds: {left: 33, top: 24, right: 113, bottom: 46},    viewFlags: 579,    _proto: protoStaticText,    debug: "textview"   };

Nice

//Hello World in Nicevoid main(String[] args){    println("hello world"); }

Nim

# Hello world in Nimecho "Hello World"

Node.js

/* Hello world in Node.js */var sys = require('sys');sys.puts('Hello World');

NSIS

; Hello World in Nullsoft Software Install Script (NSIS)Caption "Hello World!"OutFile ".\HelloWorld.exe"SilentInstall silentSection ""        MessageBox MB_OK "Hello World!"SectionEnd

NXC

/* Hello World in NXC ("Not Exactly C") */#include "NXCDefs.h"task main(){ TextOut(0, LCD_LINE1, "Hello World!");}

Oberon.oberon

MODULE HelloWorld;(* Hello World in Oberon for the Oberon System *)  IMPORT Oberon, Texts;  VAR      W: Texts.Writer;  PROCEDURE Do*;    BEGIN        Texts.WriteString(W,"Hello World!");            Texts.WriteLn(W);                Texts.Append(Oberon.Log,W.buf)                  END Do;BEGIN Texts.OpenWriter(W)END HelloWorld.

Oberon.std

(* Hello World in Oberon for standard operating systems *)MODULE HelloWorld;IMPORT Out;BEGIN  Out.String("Hello World!");  Out.Ln;END HelloWorld;

OCaml

(* Hello World in OCaml *)print_string "Hello World!\n";;

Occam

PROGRAM Hello-- Hello world in Occam#USE ioconv

SEQ

write.full.string(screen,"Hello World!")

Octave

#Hello World in Octave (http://www.octave.org/)printf("Hello World\n");

Ook

Hello World in Ook. No comments possible.Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook.Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook?Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook. Ook. Ook. Ook. Ook.Ook. Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook.Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook.Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook.Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook.Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook.Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook!Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook. Ook! Ook? Ook! Ook! Ook? Ook!Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook.Ook. Ook. Ook. Ook. Ook! Ook.

OpenVMS

$! Hello World in OpenVMS DCL$ write sys$output "Hello World"

OPL.dialog

REM Hello World for OPL (Psion Organizer 3a)REM More complex version with menues and dialog boxesPROC HELLO:  LOCAL M%  DO    REM Display menu bar    mINIT    mCARD "Sprache","Deutsch",%d,"English",%e    mCARD "Extras","Beenden",%x,"Info",%i    M%=MENU    REM process choosen function    IF M%=%d      REM Display german dialog box      REM with an ENTER button to continue      dBOX:(" ","Hallo Welt"," ","weiter",13)    ELSEIF M%=%e      REM Display english dialog box      REM with an ENTER button to continue      dBOX:(" ","Hello World"," ","continue",13)    ELSEIF M%=%i      REM Display copyright information ;-)      dBOX:("Info","(C) Klaus Müller 0196","FrankfurtMain, Germany","",13)    ENDIF  UNTIL M%=%xENDPPROC dBOX:(Z1$,Z2$,Z3$,Z4$,BUTTON%)  dINIT Z1$  dTEXT ""," ",0  dTEXT "",Z2$",$102  dTEXT "",Z3$,$202  dBUTTONS Z4$,BUTTON%  DIALOGENDPOPL.simple Back to index REM Hello World for OPL (Psion Organizer 3a)REM Simple versionPROC HELLO:  PRINT "Hello World!"  GETENDP

Oz

% Hello World in Ozfunctorimport  System  Applicationdefine  {System.showInfo "Hello World!"}  {Application.exit 0}end

Parser

# Hello World in ParserHello world!

Pascal

{
Hello World in Pascal}program HelloWorld(output);begin WriteLn('Hello World!');end.

Pascal-Windows

{ Hello World in Borland Pascal 7 for MS-Windows}PROGRAM HelloWorld;USES  WinCRT;BEGIN  InitWinCRT;  WriteLn('Hello World!');  ReadLn;  DoneWinCRT;END.

Pawn

/* Hello World in Pawn */main(){    printf "Hello World!"}

PBASIC

' Hello World in PBASIC (for the Boe-Bot Robot)' {$STAMP BS2}' {$PBASIC 2.5}DEBUG "Hello World!"END

PDF

%Hello World in Portable Document Format (PDF)%PDF-1.21 0 obj<>endobj2 0 obj<>streamBT/F1 24 Tf1 0 0 1 260 600 Tm(Hello World)TjETendstreamendobj3 0 obj<>>>endobj4 0 obj<>endobj5 0 obj<>endobj6 0 obj<>endobjtrailer<>

PEARL

MODULE (HELLO);/* Hello World in PEARL (Process and Experiment Automation Realtime Language) */  SYSTEM;   TERMINAL:DIS<->SDVLS(2);  PROBLEM;   SPC TERMINAL DATION INOUT         ALPHIC DIM(,) TFU MAX         FORWARD CONTROL (ALL);   MAIN:TASK;     DCL TEXT INV CHAR(30)          INIT('HELLO WORLD!');    OPEN TERMINAL;    PUT TEXT TO TERMINAL;    CLOSE TERMINAL;   END;MODEND;

PeopleCode

/* Hello World in PeopleCode 8.45&MsgText = MsgGetText(66666666, 999999999, "Hello World!");

Perl

# Hello world in perlprint "Hello World!\n";

PHP

PHP+GD

Piet

Hello World in Piet. No comment character exists.

Pike

// Hello world in Pike (pike.roxen.com)int main(){        write("Hello World!\n");}

Powershell

# Hello World in Microsoft Powershell'Hello World!'

PRAAT

# Hello World in praat (www.praat.org)echo Hello World!
ProC
/* Hello World in Pro*C, the Oracle's embedded SQL environment */#include 
EXEC SQL INCLUDE SQLCA;int main() { char hello[15]; char *user = "the_user"; char *password = "the_password"; char *sid = "the_sid"; EXEC SQL CONNECT :user IDENTIFIED BY :password USING :sid; EXEC SQL SELECT 'Hello World' INTO :hello FROM DUAL; printf("%s\n", hello); EXEC SQL COMMIT RELEASE; return 0;}

Processing

// Hello world in Processingprintln( "Hello world!" );

Profan

' Hello World in Profan (http://www.profan.de/)clsprint "Hello World!"waitkey

Progress

/* Hello World in Progress */message "Hello World" view-as alert-box.

Prolog

% Hello World in Prologhello :- display('Hello World!') , nl .

PureBasic-Console

; Hello World in PureBasic (console program)OpenConsole()   ConsoleTitle ("Hello World!")   PrintN ("Hello World!")CloseConsole()

PureBasic-Messagebox

; Hello World in PureBasic (message box)MessageRequester("Hello World Messagebox","Hello World!")

PureBasic-Window

; Hello World in PureBasic (Window)If OpenWindow(0, 216, 0, 268, 133,  #PB_Window_SystemMenu | #PB_Window_TitleBar | #PB_Window_ScreenCentered , "Hello World Window") If CreateGadgetList(WindowID())   TextGadget(1, 100, 60, 60, 20, "Hello World!") EndIfEndIfRepeat    ; Message LoopUntil WaitWindowEvent() = #PB_EventCloseWindow

Python 2

# Hello world in Python 2print "Hello World"

Python 3

# Hello world in Python 3 (aka Python 3000)print("Hello World")

Regular-Expression

Hello World as a regular expression.Replaces everything with "Hello World".For use with vi, sed, etc.Search String :  ^.*$Replace String: 'Hello World'

Revolution

-- Hello World in Revolution (formerly called Transcript)answer "Hello World!"

Rey

//beginning Hello World in Rey:korzystaj "Konsola";program{    PiszLinia("Hello World");}//end Hello World in Rey

RPG-IV

H* Hello World in RPG IVD msg             S             32    inz(*blank)D cmd             S             64C                   eval      msg = 'Hello World'C     msg           dsplyC                   eval      cmd = 'DLYJOB DLY(30)'C                   call      'QCMDEXC'C                   parm                    cmdC                   parm      64            len              15 5C                   eval      *inlr = *on

Ruby

# Hello World in Rubyputs "Hello World!"

SApp

comment: Hello World in SApppopup "Hello ## World!" ,

SAS

/* Hello world in SAS */* Writes as output title;TITLE "Hello World!";* writes to the log;PUT Hello world!;

Sather

-- Hello World in Sather    class HELLO is       main is #OUT + "Hello World!\n" end    end

Scala

// Hello world in Scalaobject HelloWorld extends App {
println("Hello world!")}

Scheme

; Hello World in Scheme(display "Hello, world!")(newline)

Self

(|  "Hello World in Self"  hello = (| | 'Hello World!' print)|)

SMIL

SML

(* Hello World in SML *)fun hello() = output(std_out, "Hello World!");

Spiral

Hello World in Spiral. No comment character exists.e0v ***   *eXlv**   *lX      *2X       **oXiv * * *   *     *   * 2      * o      **   v** * * *   * *****   * v      * v      * *iX ** * * *   * *       * ^      v *      * * w ** *** *   * *****   * v      * *      * * v **     *   *     ^   * ^      * *      * * * ** *** *   * ****v   * v      * *      v * * ** * * *   * *       * *      * *      ^ * * ** * * *   * *****   * *****  * *****  * *** ** * * *   *     *   *     *  *     *  **   ***** ***   *******   *****v^  *******   ******wX ***    **3Xp    *rX4..   d5*      qd**  * 3 * *   **   v^   *    ..  * *      *  **** v * ^   * #pX v   * ..  .  * *      *    *** *** v   * # r #   * ..  .  * *      * !q* ** * * *   * # v #   * 54 ..  * *      * * * ** * * *   * # * #   *   @X   * *      * * * ** * * *   * # * #   *   v    * *      * * * ** * * *   * # * #   * * **   * *      * * * **  *  *   * # * #   * ** **  * *      * *** **  *  *   * #v* ^   * *** *  * *****  *    **** * **   **   *v   * * * *  *     *  *  *** *****     *v^**    *** ***  *******  ****

SPSS

* SPSS Syntax* "Hello World" title in the Output Window of SPSS via SPSS Syntax.TITLE 'Hello World'.

SQL-Advantage

-- Hello World in SQL for Advantage Databaseselect 'Hello World' from system.iota

SQL-DB2

-- Hello World in SQL for DB2VALUES('hello world')

SQL-Oracle

Back to index # Hello World in SQL for OracleSELECT 'Hello World' FROM dual;

SQL

# Hello World in SQLSELECT 'Hello World';

Swift

// Hello world in Swiftprintln("Hello, world!")

Tcl

Back to index #!/usr/local/bin/tclsh# Hello World in Tclputs "Hello World!"

TeX

% Hello World in plain \TeX\immediate\write16{
Hello World!}\end

TI-59

Hello World for the TI-59 with PC-100C thermo printer.No comment character exists.The TI-59/PC-100C can print up to 20 characters per line (upper caseonly). They are coded as 2-digit decimal numbers (see manual fordetails) in up to four print registers (of five characters each)and then printed.Before entering the program, press LRN to switch into learn mode.After entering the program, cancel learn mode with LRN, turn on theprinter, and run the program with A.A pleasant sound, and what a font! Real TRUE-TYPE!The output looks like this:
+--------------------+  |        HELLO WORLD!|  |                    |  +--------------------+  TI59 Code   Comment  LBL A       Start of program: label A  OP 00       Clear the four print registers  23          "H"  OP 02       Write into print register 2  17          "E"  27          "L"  27          "L"  32          "O"  00          " "  OP 03       Write into print register 3  43          "W"  32          "O"  35          "R"  27          "L"  16          "D"  73          "!"  OP 04       Write into print register 4  OP 05       Start printing  ADV         Line feed (optional)  R/S         End program

Turing-Machine

Hello World as a Turing machine.

State Read Write Step Next state
1 empty H > 2
2 empty e > 3
3 empty l > 4
4 empty l > 5
5 empty o > 6
6 empty blank > 7
7 empty W > 8
8 empty o > 9
9 empty r > 10
10 empty l > 11
11 empty d > 12
12 empty ! > STOP

Turing

% Hello World in Turingput "Hello World!"

TypeScript

// Hello world in TypeScriptalert('Hello world!');

UniComal

// Hello World in UniComalPRINT "Hello World"

Unix-Shell

# Hello World for the Unix shells (sh, ksh, csh, bash, ...)echo 'Hello World!'

unlambda

# Hello World in unlambda`r```````````.H.e.l.l.o. .w.o.r.l.di

Vatical

+ Hello World in VaticalLITURGY:    PRAY "Hello World!"AMEN.

VAX-11-Macro

; Hello World in VAX-11 MACRO        .title helloterm_name:      .ascid /SYS$INPUT/term_chan:      .blkw 1out_iosb:       .blkq 1msg:    .asciz  /Hello, world!/        .entry start,0        ; establish a channel for terminal I/O        $assign_s devnam=term_name,-                chan=term_chan        blbc r0,error        ; queue the I/O request        $qio_s chan=term_chan,-                func=#io$_writevblk,-                iosb=out_iosb,-                p1=msg,-                p2=#13        blbc r0,error        $exit_s ; normal exiterror:  halt ; error condition        .end start

VAX-Macro

Hello World in VAX Macro.        .title  helloworld        .ident  /hello world/;        .library        /sys$library:lib/        $libdef        $lib$routinesdef        .psect  $data,wrt,noshr,noexe,longhello:  .ascid  /Hello World!/        .psect  $code,nowrt,shr,exe,long        .entry  helloworld,^m
pushaq hello ; output themessage calls #1,g^lib$put_output ; ret ; GTFOH .end helloworld ;

VBA (Excel)

' Hello world in Visual Basic for Applications, Excel versionPrivate Sub Workbook_Open()    MsgBox "Hello world!"End Sub

VBA (Word)

' Hello world in Visual Basic for Applications, Word versionPrivate Sub Document_Open()    MsgBox "Hello world!"End Sub

VBScript

' Hello World in VBScript (Windows Scripting Host)msgbox "Hello, World!"

Velocity

#set( $foo = "Hello World" ) $foo

Verilog

/* Hello World in Verilog. */module main; initial   begin     $display("Hello, World");     $finish ;   end endmodule

Vexi

vexi.ui.frame = thisbox;

VHDL

ENTITY helloworld ISEND helloworld;ARCHITECTURE hw OF helloworld ISBEGINASSERT FALSEREPORT "HELLO, WORLD!"SEVERITY NOTE;END hw;

Vim script

" Hello world in Vim script:echom "Hello world!"

Visual-FoxPro

Back to index *Hello World in Microsoft Visual FoxPro 5-9? "Hello World!"

VisualBasic

Begin Form Form1   Caption         =   "Form1"   ClientHeight    =   6096   ClientLeft      =   936   ClientTop       =   1572   ClientWidth     =   6468   Height          =   6540   Left            =   876   LinkTopic       =   "Form1"   ScaleHeight     =   6096   ScaleWidth      =   6468   Top             =   1188   Width           =   6588   Begin Label Label1      Caption         =   "Hello World!"      Height          =   372      Left            =   2760      TabIndex        =   0      Top             =   2880      Width           =   972   EndEndOption Explicit

VisualBasic.NET

'Hello World in Visual Basic .NET (VB.NET)Imports System.ConsoleClass HelloWorld    Public Shared Sub Main()        WriteLine("Hello, world!")    End SubEnd Class

VisualBasic6

' Hello World in Visual Basic 6Private Sub Form_Load()Print "Hello World"End Sub

VisualProlog

/* Hello World in Visual Prolog */goal    console::init(),    stdio::write("Hello World!").VisualWorksSmalltalk "Hello World! in VisualWorks Smalltalk"Dialog warn: 'Hello World!'.

VMS-DCL

$ ! Hello World in Digital Command Language for the VMS operating system$ WRITE SYS$OUTPUT "Hello World!"

VRML

Shape        {        geometry Text                {
string "Hello World!"} }

VSL

/* "hello, world" in VSL (the script language of Virtools),to be used in a "Run VSL" building block */void main(){    bc.OutputToScreen("hello, world");}

VVVV

Hello World in VVVV

Whirl

Hello World in Whirl. This language has no comments.110001100111000111110000010001111100011000000000110000011100000110000010000011000111100000111110000011100001111100100011001110000111111100001001111100011000000000110000011000111110001000000000000000000001001111110000111111000100000000000000000000000000011111000100100000000111111000100000000000001001000011111000001110000111110010001100011000000100010000011000000000000000001100000111001111100111111000100111001111000011100010011111110000111000110000000000000000000000000000000001000100001111100000111000011111001100011100000111000000010001111100000111110001000000000111000110000000000000000000000000000000100100001111100000111000011100010000000000000100010000111110001110001111100111111000011100001100111000111000000000001111100000111000110000110110001000000000010000001111100000111000011111000000010001110000000000000000000000000000000100000011111000001100

Whitespace

Hello #World #in #Whitespace    * # #   * # # #+   *[Space]+ #is #marked #with"#" # #[tab] #with"*"    *line-feed #with #"+"   * # *so+it #would+be #easier #to #write #again... #All   *the    *non-whitespace-characters #are *ignored... * # #+   *+ # # # # # *   * # *   * # #+   *+ # # # # # *   * # *   *   *   *+   *+ # # # # # * # # # # #+   *+ # # # # # * # * # *   *   *+   *+ # # # # # *   * # *   *   *   *+   *+ # # # # # *   *   * # #   * #+   *+ # # # # # *   * # *   * # #+   *+ # # # # # *   * # #   * # #+   *+ # # # # # * # # # #   *+   *+ # # # # # * # * #+   *+ # #+++

wml

#define HELLOWORLD [message] speaker="narrator" message=_"Hello World" [/message] #enddef

WSH

// Hello World for the Windows Scripting HostWScript.Echo("Hello World!");

X++

class classHelloWorld{
}static void main(args Args){ dialog dialog; ; dialog = new dialog(); dialog.addText("Hello World!"); dialog.run();}

Xbase++

Hello World in Xbase++func Main()  Qout("Hello World!")return 1

xblite

' Hello World in xblite, Windows GUI mode    IMPORT "gdi32"    IMPORT "user32"DECLARE FUNCTION Entry ()FUNCTION Entry ()    MessageBoxA (0, &"Hello World!", &"Hello World Window", $$MB_OK)END FUNCTIONEND PROGRAM

XHTML

Hello World!

Hello World!

to helloworld resetall hideturtle fd 20 left 180 fd 40 left 180 fd 20 right 90 fd 20 left 90 fd 20 left 180 fd 40 left 90 fd 20 left 90 fd 20 right 90 fd 20 right 90 fd 10 right 90 fd 20 left 90 fd 10 left 90 fd 30 left 90 fd 40 left 180 fd 40 left 90 fd 20 left 90 fd 40 left 180 fd 40 left 90 fd 40 left 90 fd 20 left 90 fd 20 left 90 fd 20 left 90 fd 60 left 90 fd 40 left 180 fd 40 left 90 fd 20 left 90 fd 20 left 180 fd 20 left 90 fd 20 left 90 fd 40 left 180 fd 40 left 90 fd 40 left 90 fd 20 left 90 fd 20 left 90 fd 20 left 90 fd 40 left 90 fd 20 right 90 fd 20 right 90 fd 5  left 90   fd 5  left 90   fd 25 left 180 fd 40 left 90 fd 40 left 90 fd 20 left 90 fd 20 left 90 fd 20 left 90 fd 20 left 90 fd 40 left 180 fd 40end

XML

Hello, World

XQuery

(: Hello World with XQuery :)let $i := "Hello World"return $i

XSL-FO

?
Hello, World

XSLT

Hello World!

XUL

Yacas

Hello World in YacasWriteString("Hello World")

ZIM

% Hello World in ZIM (database and development language)out "Hello World"

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

你可能感兴趣的文章
NAS 创建大文件
查看>>
学习笔记-模块之xml文件处理
查看>>
接口测试用例
查看>>
Sybase IQ导出文件的几种方式
查看>>
案例:手动输入一个字符串,打散放进一个列表,小写字母反序 大写字母保持不变...
查看>>
linux 系统下 tar 的压缩与解压缩命令
查看>>
阿里负载均衡,配置中间证书问题(在starcom申请免费DV ssl)
查看>>
转:How to force a wordbreaker to be used in Sharepoint Search
查看>>
MySQL存储过程定时任务
查看>>
Python中and(逻辑与)计算法则
查看>>
POJ 3267 The Cow Lexicon(动态规划)
查看>>
设计原理+设计模式
查看>>
tomcat 7服务器跨域问题解决
查看>>
前台实现ajax 需注意的地方
查看>>
Jenkins安装配置
查看>>
个人工作总结05(第二阶段)
查看>>
Java clone() 浅拷贝 深拷贝
查看>>
深入理解Java虚拟机&运行时数据区
查看>>
02-环境搭建
查看>>
spring第二冲刺阶段第七天
查看>>