Hallo-Welt-Programm
aus Wikipedia, der freien Enzyklopädie
Einfache Beispiele von Computerprogrammen, die zum Beispiel zur Demonstration verwendet werden, bestehen häufig nur aus ein paar Zeilen Programmcode, die den Text Hallo, Welt! oder auf Englisch Hello, world! ausgeben. Dieses Programm soll als eines der einfachst möglichen zeigen, was für ein vollständiges Programm (in der betreffenden Programmiersprache) benötigt wird, und einen ersten Einblick in die Syntax geben. Ein solches Programm ist auch geeignet, die erfolgreiche Installation eines Compilers für die entsprechende Programmiersprache zu überprüfen.
Die Verwendung des Textes „Hello, world!“, der auch durch einen beliebigen Text ersetzt werden kann, aber dennoch gerne unverändert benutzt wird, ist eine Tradition und geht auf ein internes Programmierhandbuch der Bell Laboratories über die Programmiersprache C zurück, das Brian Kernighan dort 1974 verfasste, nachdem er dort schon ein Jahr zuvor die Worte „hello“ und „world“ in einer Einführung in die Programmiersprache B verwendet hatte. Bekanntheit erlangte der Text jedoch erst durch die Veröffentlichung in dem Buch The C Programming Language (deutsch: Programmieren in C) von Brian Kernighan und Dennis Ritchie, auch wenn in dem dortigen Beispiel die Schreibung „hello world“ verwendet wurde.
Viele der folgenden Beispiele geben nicht nur den Text aus, sondern enthalten Kommentare oder definieren zusätzlich noch Parameter wie Position oder Schriftart, die dann rein willkürlich gewählt sind.
Zeilenorientiert (Konsole)
ABAP
REPORT Z_HALLO_WELT. WRITE 'Hallo Welt!'.
Actionscript
trace('Hallo Welt');
Ada
with Ada.Text_IO; procedure Hallo is begin Ada.Text_IO.Put_Line ("Hallo Welt!"); end Hallo;
Für eine Erklärung des Programmes siehe wikibooks:Programming:Ada:Basic.
ALGOL 60
'BEGIN' OUTSTRING(2,'('HALLO WELT')'); 'END'
ALGOL 68
( print("Hallo Welt!") )
APL
'Hallo Welt!'
Assembler
.MODEL Small .STACK 100h .DATA HW DB 'Hallo Welt!$' .CODE start: MOV AX,@data MOV DS,AX MOV DX, OFFSET HW MOV AH, 09H INT 21H MOV AH, 4Ch INT 21H end start
# Kompilieren mit "as -o hallo.o hallo.s; ld -o hallo hallo.o" .section .data s: .ascii "Hallo Welt!\n" .section .text .globl _start _start: movl $4,%eax # Syscall-ID 4 (= __NR_write) movl $1,%ebx # Ausgabe-Filedeskriptor STDOUT (= 1) movl $s,%ecx # Adresse des ersten Zeichens der Zeichenkette movl $12,%edx # Länge der Zeichenkette (12 Zeichen) int $0x80 # Softwareinterrupt 0x80 um Syscall (write(1,s,12))auszuführen movl $1,%eax # Syscall-ID 1 (= __NR_exit) movl $0,%ebx # Rückgabewert 0 (= alles ok) int $0x80 # Softwareinterrupt 0x80 um Syscall (exit(0)) auszuführen
# Kompilieren mit "gcc -nostdlib -s hallo.s" .section .rodata .align 2 .s: .string "Hallo Welt!\n" .section ".text" .align 2 .globl _start _start: li 0,4 # SYS_write li 3,1 # fd = 1 (stdout) lis 4,.s@ha # buf = .s la 4,.s@l(4) li 5,12 # len = 12 sc # syscall li 0,1 # SYS_exit li 3,0 # returncode = 0 sc # syscall
; Getestet mit ASM-One V1.01 move.l 4.w,a6 lea dosn(pc),a1 jsr -408(a6) ; OldOpenLibrary move.l d0,a6 lea s(pc),a0 move.l a0,d1 jsr -948(a6) ; PutStr move.l a6,a1 move.l 4.w,a6 jsr -414(a6) ; CloseLibrary moveq #0,d0 rts dosn: dc.b "dos.library",0 s: dc.b "Hallo Welt",10,0
; Kompiliert und getestet mit ; "as hallo.s ; ld hallo.o /usr/ccs/lib/crt0" ; unter HP-UX 11.0 auf einer HP9000/L2000 .LEVEL 1.1 .SPACE $TEXT$ .SUBSPA $LIT$,ACCESS=0x2c s .STRING "Hallo Welt\x0a" .SPACE $TEXT$ .SUBSPA $CODE$,ACCESS=0x2c,CODE_ONLY .EXPORT _start,ENTRY,PRIV_LEV=3 .EXPORT __errno .EXPORT __sys_atexit _start __errno __sys_atexit ldil L'0xC0000000,%r18 ldi 4,%r22 ; SYS_write ldi 1,%r26 ; fd = stdout ldil LR's,%r4 ldo RR's(%r4),%r25 ; buf = s be,l 4(%sr7,%r18) ; Syscall ldi 12,%r24 ; len = 12 (Branch delay slot) ldi 1,%r22 ; SYS_exit be,l 4(%sr7,%r18) ; Syscall ldi 0,%r26 ; returncode = 0 (Branch delay slot)
x86-CPU, FreeBSD, Intel-Syntax
section .data hello_world db 'hello world', 0x0a hello_world_len equ $ - hello_world section .text align 4 sys: int 0x80 ret global _start _start: push hello_world_len push hello_world push 1 mov eax, 4 call sys push 0 mov eax, 1 call sys
Autohotkey
MsgBox, Hallo Welt!
AutoIt
MsgBox(0, "", "Hallo Welt!")
awk
BEGIN { print "Hallo Welt!" }
B
main() { printf("Hallo Welt"); }
BASIC
Traditionelles, unstrukturiertes BASIC:
10 PRINT "Hallo Welt!"
bzw. im Direktmodus:
?"Hallo Welt!"
Bash
echo Hallo Welt!
BCPL
GET "LIBHDR" LET START () BE $( WRITES ("Hallo Welt!*N") $)
BeanShell
print("Hallo Welt!");
BlitzBasic
print "Hallo Welt!"
Boo
print "Hallo Welt!"
C\AL
MESSAGE('Hallo Welt')
C
#include <stdio.h> int main(void) { printf("Hallo Welt!\n"); return 0; }
Siehe auch: Hallo-Welt-Programm in C, Varianten der Programmiersprache C
C++
#include <iostream> int main() { std::cout << "Hello World!" << std::endl; }
C++/CLI
int main() { System::Console::WriteLine("Hallo Welt!"); }
C#
class MainClass { public static void Main() { System.Console.WriteLine("Hallo Welt!"); } }
Chrome
namespace Hallo; interface implementation method Main; begin Console.WriteLine('Hallo Welt!'); end.
CLIST
WRITE HALLO WELT
COBOL
000100 IDENTIFICATION DIVISION. 000200 PROGRAM-ID. HELLOWORLD. 000300 000400* 000500 ENVIRONMENT DIVISION. 000600 CONFIGURATION SECTION. 000700 SOURCE-COMPUTER. RM-COBOL. 000800 OBJECT-COMPUTER. RM-COBOL. 000900 001000 DATA DIVISION. 001100 FILE SECTION. 001200 100000 PROCEDURE DIVISION. 100100 100200 MAIN-LOGIC SECTION. 100300 BEGIN. 100400 DISPLAY " " LINE 1 POSITION 1 ERASE EOS. 100500 DISPLAY "Hello world!" LINE 15 POSITION 10. 100600 STOP RUN. 100700 MAIN-LOGIC-EXIT. 100800 EXIT.
Commodore 64 (Basic)
10 print "Hallo Welt!"
Common Lisp
(write-line "Hallo Welt!")
Component Pascal
MODULE HalloWelt; IMPORT Out; PROCEDURE Output*; BEGIN Out.String ("Hallo Welt!"); Out.Ln; END Output; END HalloWelt.
D
import std.stdio; void main(char[][] args) { writefln("Hallo Welt!"); }
DarkBASIC
print "Hallo Welt!" wait key
dBase/Foxpro
? "Hallo Welt!" wait window "Hallo Welt!"
Dylan
define method hallo-welt() format-out("Hallo Welt\n"); end method hallo-welt; hallo-welt();
E
PROC main() WriteF('Hallo Welt!') ENDPROC
EASY
in der Variante tdbengine:
module helloworld procedure Main cgiclosebuffer cgiwriteln("content-type: text/html") cgiwriteln("") cgiwriteln("Hallo Welt!") endproc
Eiffel
class HALLO_WELT create make feature make is do io.put_string("Hallo Welt!%N") end end
ELAN
putline ("Hello World!");
Emacs Lisp
(print "Hallo Welt")
Erlang
-module(Hallo). -export([Hallo_Welt/0]). Hallo_Welt() -> io:fwrite("Hallo Welt!\n").
Forth
: halloforth ( -- ) ." Hallo Welt!" ;
Fortran
PROGRAM HALLO WRITE(*,*) "Hallo Welt!" END PROGRAM
Fortress
component HalloWelt export Executable run(args:String...) = print "Hallo Welt!" end
Haskell
main :: IO () main = putStrLn "Hallo Welt!"
Io
"Hallo Welt" print
IL (IL Assembler)
.assembly HalloWelt { } .assembly extern mscorlib { } .method public static void SchreibeHalloWelt() { .maxstack 1 .entrypoint ldstr "Hallo Welt!" call void [mscorlib]System.Console::WriteLine(string) ret }
Iptscrae
"Hallo Welt!" SAY
J#
public class HalloWelt { public static void main(String[] args) { System.Console.WriteLine("Hallo Welt!"); } }
Javascript
WriteLn("Hello World"); DebugBreak;
oder …
document.write('Hello World');
oder …
alert('Hello World');
Java
public class Hallo { public static void main(String[] args) { System.out.println("Hallo Welt!"); } }
Lua
print ("Hallo Welt!")
Logo
print [Hallo Welt!]
MATLAB
fprintf('Hallo Welt!');
Maschinensprache (DOS-COM-Programm auf Intel 80x86)
BA 0B 01 B4 09 CD 21 B4 4C CD 21 48 61 6C 6C 6F 2C 20 57 65 6C 74 21 24
mIRC Script
/echo Hallo Welt!
Mixal
TERM EQU 18 the MIX console device number ORIG 1000 start address START OUT MSG(TERM) output data at address MSG HLT halt execution MSG ALF "MIXAL" ALF " HELL" ALF "O WOR" ALF "LD " END START end of the program
MMIX, MMIXAL
string BYTE "Hallo Welt!",#a,0,0,0,0 auszugebende Zeichenkette (#a ist ein Zeilenumbruch, 0 schließt die Zeichenkette ab, die anderen Nullen werden ergänzt, da die String-Länge durch 4 teilbar sein muss.) Main GETA $255,string Adresse der Zeichenkette in Register 255 ablegen TRAP 0,Fputs,StdOut Zeichenkette, auf die mit Register 255 verwiesen wird, nach StdOut ausgeben TRAP 0,Halt,0 Prozess beenden
MS-DOS Batch
@echo Hallo Welt!
Mumps
W "Hallo Welt",!
Natural
WRITE 'Hallo Welt' * END
Oberon
MODULE HalloWelt; IMPORT Write; BEGIN Write.Line("Hallo Welt!"); END HalloWelt.
OCaml
print_string "Hallo Welt!\n";;
Objective C
#import <stdio.h> int main() { puts("Hallo Welt!"); return 0; }
ObjectPAL (Paradox Application Language)
method run(var eventInfo Event) msginfo("Info", "Hallo Welt!") endMethod
Object Pascal (Delphi)
program HalloWelt; {$APPTYPE CONSOLE} begin writeln('Hallo Welt!'); end.
OPAL
-- Signatur und Implementation sind eigentlich zwei Dateien Signature HelloWorld FUN Hello : denotation Implementation HelloWorld FUN Hello : denotation DEF Hello == "Hallo Welt!\n"
OPL
PROC Hallo: PRINT "Hallo Welt!" ENDP
Pascal
program Hallo ( output ); begin writeln('Hallo Welt!') end.
Turbo Pascal
begin write ('Hallo Welt!'); end.
Perl
print "Hallo Welt!";
Phalanger
<? class Program { static function Main() { echo "Hallo, Welt!\n"; fgets(STDIN); return 0; } } ?>
Pike
int main() { write("Hallo Welt!\n"); return 0; }
PILOT
T:Hallo Welt!
PocketC
Konsole:
main() { puts("Hallo Welt!"); }
Dialogfenster:
main() { alert("Hallo Welt!"); }
In einer Textbox:
main() { box=createctl("EDIT","Test",ES_MULTILINE,0x000,30,30,100,30,3000); editset(box,"Hallo Welt!"); }
PL/I
Test: procedure options(main); put skip list("Hallo Welt!"); end Test;
PL/SQL
BEGIN DBMS_OUTPUT.PUT_LINE('Hallo Welt!'); END;
POV-Ray
camera { location <0, 0, -5> look_at <0, 0, 0> } light_source { <10, 20, -10> color rgb 1 } light_source { <-10, 20, -10> color rgb 1 } background { color rgb 1 } text { ttf "someFont.ttf" "Hello World!", 0.015, 0 pigment { color rgb <0, 0, 1> } translate -3*x }
PowerShell Script
Kommandozeile:
"Hallo Welt!"
alternativ:
Write-Host "Hallo Welt!"
oder:
echo "Hallo Welt!"
oder:
[System.Console]::WriteLine("Hallo Welt!")
Dialogfenster:
[System.Windows.Forms.MessageBox]::Show("Hallo Welt!")
Prolog
?- write('Hallo Welt!'), nl.
PureBasic
- In der Konsole
OpenConsole() Print("Hallo Welt!") CloseConsole()
- Im Dialogfenster
MessageRequester("","Hallo Welt")
- Im Fenster
If OpenWindow (1,0,0,300,50,#PB_Window_ScreenCentered|#PB_Window_SystemMenu,"Hallo Welt") If CreateGadgetList(WindowID(1)) TextGadget(1,10,10,280,20,"Hallo Welt!!!",#PB_Text_Border) EndIf Repeat event.l = WaitwindowEvent() Until event.l = #PB_Event_CloseWindow End EndIf
Pure Data
- Patch im Quelltext
#N canvas 0 0 300 300 10; #X obj 100 100 loadbang; #X msg 100 150 hello world; #X obj 100 200 print; #X connect 0 0 1 0; #X connect 1 0 2 0;
Python
print "Hallo Welt!"
QBASIC
PRINT "Hallo Welt"
R
Gibt folgendes aus: [1] "Hallo Welt!"
print ("Hallo Welt!")
oder
cat ("Hallo Welt!\n")
RapidBATCH
echo 'Hallo Welt' end
REXX
say "Hallo Welt!"
RPG
- RPG 3
C MOVE *BLANKS HALLO 10 C MOVEL'HALLO' HALLO C MOVE 'WELT' HALLO C DSPLY HALLO C MOVE '1' *INLR
- RPG 4
D HALLO S 10A C EVAL HALLO = 'Hallo Welt' C DSPLY HALLO C EVAL *INLR = *ON
- RPG 4 (Free)
D HALLO S 10A /FREE HALLO = 'Hallo Welt'; DSPLY HALLO; *INLR = *ON; /END-FREE
RPL
<< "Hallo Welt!" 1 Disp>>
Ruby
puts "Hallo Welt!"
SAS
data _null_; put "Hallo Welt!"; run;
oder
%put Hallo Welt!;
Scheme
(display "Hallo Welt!") (newline)
sed
Benötigt mindestens ein Zeichen als Eingabe:
sed -ne '1s/.*/Hallo Welt!/p'
Oder
echo "Hallo" | sed 's:.*:& Welt!:'
Seed7
$ include "seed7_05.s7i"; const proc: main is func begin writeln("hello world"); end func;
Self
'Hallo Welt!' print.
Smalltalk
'Hallo Welt!' out.
SNOBOL4
OUTPUT = "Hallo Welt!" END
Spec#
using System; public class Program { public static void Main(string![]! args) requires forall{int i in (0:args.Length); args[i] != null}; { Console.WriteLine("Hallo Welt!"); } }
Standard ML
print "Hallo Welt!\n"
STARLET
RACINE: HELLO_WORLD. NOTIONS: HELLO_WORLD : ecrire("Hallo Welt!").
SPL
debug "Hallo Welt";
SQL
SELECT 'Hallo Welt!' AS message;
SELECT 'Hallo Welt!' FROM dual;
Für IBM-DB2
SELECT 'Hallo Welt!' FROM sysibm.sysdummy1;
Für MSSQL
SELECT 'Hallo Welt!'
StarOffice Basic
sub main print "Hallo Welt!" end sub
Tcl
puts "Hallo Welt!"
Teco
iHallo Welt!$ht$$
TI-Basic
TI-Basic auf dem TI-83 Plus.
:Disp "Hallo Welt!"
oder
:Output(1,1,"Hallo Welt!")
oder
:Text "Hallo Welt!"
Turing
put "Hallo Welt!"
Unix-Shell
echo 'Hallo Welt!'
Verilog
module hallo_welt; initial begin $display ("Hallo Welt!"); #10 $finish; end endmodule
VHDL
entity HelloWorld is end entity HelloWorld; architecture Bhv of HelloWorld is begin HelloWorldProc: process is begin report "Hallo Welt!"; wait; end process HelloWorldProc; end architecture HelloWorld;
Grafische Benutzeroberflächen – als traditionelle Anwendungen
AppleScript
display dialog "Hallo Welt!"
Autohotkey
gui, font, s20 Gui, Add, Text,cgreen center, Hallo Welt! Gui, Add, Button, x65 default, OK Gui, Show,W200 H150, Hallo Welt Beispiel return GuiClose: ButtonOK: ExitApp
AutoIt
;AutoIt 3.X MsgBox(0, "", "Hallo Welt!")
C mit GTK
/* * Kompilieren mit "gcc hello_world.c -o hello_world `pkg-config --cflags --libs gtk+-2.0`". * (Falls die Datei unter dem Namen "hello_world.c" gespeichert wurde.) */ #include <gtk/gtk.h> gboolean delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { return FALSE; } void destroy(GtkWidget *widget, gpointer data) { gtk_main_quit(); } void clicked(GtkWidget *widget, gpointer data) { g_print("Hallo, Welt!\n"); } int main (int argc, char *argv[]) { gtk_init(&argc, &argv); GtkWidget *window; GtkWidget *button; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_container_set_border_width(GTK_CONTAINER(window), 10); g_signal_connect(G_OBJECT(window), "delete-event", G_CALLBACK(delete_event), NULL); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(destroy), NULL); button = gtk_button_new_with_label("Hallo, Welt!"); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(clicked), NULL); gtk_widget_show(button); gtk_container_add(GTK_CONTAINER(window), button); gtk_widget_show(window); gtk_main(); return 0; }
C#
using System; using System.Drawing; using System.Windows.Forms; class HelloWorldForm : Form { public static void Main() { Application.Run(new HelloWorldForm()); } public HelloWorldForm() { Label label = new Label(); label.Text = "Hallo, Welt!"; label.Location = new Point(40, 30); Controls.Add(label); Button button = new Button(); button.Text = "OK"; button.Location = new Point(50, 55); Controls.Add(button); button.Click += new EventHandler(OnButtonOk); } void OnButtonOk(Object sender, EventArgs e) { this.Close(); } }
oder mit Hilfe der statischen Klasse MessageBox:
public class HelloWorld { static void Main() { System.Windows.Forms.MessageBox.Show("Hallo Welt!"); } }
C++ mit gtkmm
/* * Kompilieren mit g++ hello_world.cc -o hello_world `pkg-config --cflags --libs gtkmm-2.4` * (Falls die Datei unter dem Namen "hello_world.cc" gespeichert wurde.) */ #include <iostream> #include <gtkmm/main.h> #include <gtkmm/button.h> #include <gtkmm/window.h> using namespace std; class HalloWelt : public Gtk::Window { public: HalloWelt(); virtual ~HalloWelt(); protected: Gtk::Button m_button; virtual void on_button_clicked(); }; HalloWelt::HalloWelt() : m_button("Hallo Welt!") { set_border_width(10); m_button.signal_clicked().connect(sigc::mem_fun(*this, &HalloWelt::on_button_clicked)); add(m_button); m_button.show(); } HalloWelt::~HalloWelt() {} void HalloWelt::on_button_clicked() { cout << "Hallo Welt!" << endl; } int main (int argc, char *argv[]) { Gtk::Main kit(argc, argv); HalloWelt HalloWelt; Gtk::Main::run(HalloWelt); return 0; }
C++ mit Qt
#include <QLabel> #include <QApplication> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel label("Hello World!"); label.show(); return app.exec(); }
Cauldron
<?xml version="1.0" encoding="UTF-8"?> <c:cauldron xmlns:c="/de/alaun/cauldron/lang" xmlns:x="."> <c:page name="hallo"> <x:HelloComponent /> </c:page> </c:cauldron>
<?xml version="1.0" encoding="UTF-8"?> <c:cauldron xmlns:c="/de/alaun/cauldron/lang" xmlns:h="/de/alaun/cauldron/html"> <c:component name="HelloComponent" extends="h:HtmlPage"> <c:content> <h:Label Text="Hallo Welt!" /> </c:content> </c:component> <c:cauldron>
Clarion
program window WINDOW('Hallo Welt'),AT(,,300,200),STATUS,SYSTEM,GRAY,DOUBLE,AUTO END code open(window) show(10,10,'Hallo Welt') accept end close(window)
Delphi
program HalloWelt; uses Dialogs; begin ShowMessage('Hallo Welt!'); end.
EASY
in der Variante VDP:
module helloworld procedure Main Message("Hallo Welt!") endproc
Gambas
PUBLIC SUB Form_Enter() PRINT "Hallo Welt" END
J#
import System.Windows.Forms.MessageBox; public class HalloWelt { public static void main(String[] args) { MessageBox.Show("Hallo Welt!"); } }
oder
import System.Drawing.*; import System.Windows.Forms.*; public class HalloWelt { public static void main(String[] args) { Application.Run( new HalloWeltFenster() ); } } public class HalloWeltFenster extends Form { public HalloWeltFenster() { this.set_ClientSize( new Size(144, 40) ); this.set_Text("Hallo Welt!"); Button Button_HelloWorld = new Button(); Button_HelloWorld.set_Name("Button_HelloWorld"); Button_HelloWorld.set_Location(new Point(8, 8)); Button_HelloWorld.set_Size(new Size(128, 24)); Button_HelloWorld.set_Text("\"Hallo Welt!\""); Button_HelloWorld.add_Click(new System.EventHandler(this.Button_HelloWorld_Click)); this.get_Controls().Add(Button_HelloWorld); } private void Button_HelloWorld_Click(Object sender, System.EventArgs e) { MessageBox.Show("Hallo Welt!"); } }
Java
- AWT:
import java.awt.Frame; import java.awt.Label; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class HalloWeltFenster extends Frame { public HalloWeltFenster() { super("Hallo Welt!"); Label halloWeltLabel = new Label("Hallo Welt!"); add(halloWeltLabel); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); setResizable(false); setLocation(350, 320); setSize(160, 60); setVisible(true); } public static void main(String[] args) { new HalloWeltFenster(); } }
import javax.swing.JFrame; import javax.swing.JLabel; public class HelloWorld extends JFrame { JLabel halloWeltLabel; public HelloWorld() { setTitle("Hallo Welt!"); setLocation(350, 320); setSize(160, 60); halloWeltLabel = new JLabel("Hallo Welt!"); getContentPane().add(halloWeltLabel); setDefaultCloseOperation(EXIT_ON_CLOSE); setResizable(false); setVisible(true); } public static void main(String[] args) { new HelloWorld(); } }
- SWT:
import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class HelloWorld { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.open(); shell.setText("Hallo Welt!"); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } }
LabVIEW
Lingo
In das Message-Fenster:
on startMovie put "Hallo Welt!" end startMovie
In ein Dialogfenster:
on startMovie alert "Hallo Welt!" end startMovie
In ein gestaltbares Dialogfenster mittels MUI Xtra:
on startMovie set alertObj = new(xtra "MUI") set alertInitList = [ \ #buttons : #Ok, \ #default : 1, \ #icon : #note, \ #message : "Hallo Welt!", \ #movable : TRUE, \ #title : ""] if objectP(alertObj) then set result = alert(alertObj, alertInitList) case result of 1 : -- the user clicked OK otherwise : -- the user hit ESC end case end if end startMovie
LISP
(alert "Hallo Welt!")
Lj4 (Ljapunow)
MsgBox("Hallo Welt?", MB_ICONINFORMATION BitOr MB_OK, "Meldung")
Perl mit Tk
use Tk; $init_win = new MainWindow; $label = $init_win -> Label( -text => "Hallo Welt" ) -> pack( -side => top ); $button = $init_win -> Button( -text => "Ok", -command => sub {exit} ) -> pack( -side => top ); MainLoop;
Profan² / XProfan²
Messagebox("Hallo Welt","",0)
oder
Print "Hallo Welt" WaitKey End
oder
shell getenv$("COMSPEC")+" /k @echo Hallo Welt"
PureBasic
MessageRequester("","Hallo Welt")
Pure Data
- Patch als ASCII-art
[hello world( | [print]
Spec#
using System; using System.Windows.Forms; public class Program { static void Main(string![]! args) requires forall{int i in (0:args.Length); args[i] != null}; { MessageBox.Show("Hallo Welt!"); } }
SPL mit QT
load "qt"; var a = new qt.QApplication(); var l = new qt.QLabel(undef); l.setText("Hello World!"); function click_callback(e) { debug "Click: ${e.x()} / ${e.y()}"; return 1; } qt_event_callback(l, click_callback, qt.QEvent.MouseButtonPress()); a.setMainWidget(l); l.show(); a.exec();
TclTk
label .label1 -text "Hallo Welt" pack .label1
oder kürzer (unter Ausnutzung, dass das Label-Kommando den Namen zurückgibt):
pack [label .label1 -text "Hallo Welt"]
REALBasic
MsgBox "Hello World!"
Visual Basic
Public Sub Main() MsgBox "Hallo Welt!" End Sub
Waba / SuperWaba
import waba.ui.*; import waba.fx.*; public class HelloWorld extends MainWindow { public void onPaint(Graphics g) { g.setColor(0, 0, 0); g.drawText("Hallo Welt!", 0, 0); } }
Windows API (in C)
#include <windows.h> int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(0, "Hallo Welt!", "Mein erstes Programm", MB_OK); return 0; }
Oder mit eigenem Fenster und Eventhandler
#include <windows.h> LRESULT CALLBACK WindowProcedure(HWND, UINT, WPARAM, LPARAM); char szClassName[] = "MainWnd"; HINSTANCE hInstance; int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { HWND hwnd; MSG msg; WNDCLASSEX wincl; hInstance = hInst; wincl.cbSize = sizeof(WNDCLASSEX); wincl.cbClsExtra = 0; wincl.cbWndExtra = 0; wincl.style = 0; wincl.hInstance = hInstance; wincl.lpszClassName = szClassName; wincl.lpszMenuName = NULL; //No menu wincl.lpfnWndProc = WindowProcedure; wincl.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); //Color of the window wincl.hIcon = LoadIcon(NULL, IDI_APPLICATION); //EXE icon wincl.hIconSm = LoadIcon(NULL, IDI_APPLICATION); //Small program icon wincl.hCursor = LoadCursor(NULL, IDC_ARROW); //Cursor if (!RegisterClassEx(&wincl)) return 0; hwnd = CreateWindowEx(0, //No extended window styles szClassName, //Class name "", //Window caption WS_OVERLAPPEDWINDOW & ~WS_MAXIMIZEBOX, CW_USEDEFAULT, CW_USEDEFAULT, //Let Windows decide the left and top positions of the window 120, 50, //Width and height of the window, NULL, NULL, hInstance, NULL); //Make the window visible on the screen ShowWindow(hwnd, nCmdShow); //Run the message loop while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; } LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { PAINTSTRUCT ps; HDC hdc; switch (message) { case WM_PAINT: hdc = BeginPaint(hwnd, &ps); TextOut(hdc, 15, 3, "Hallo Welt!", 13); EndPaint(hwnd, &ps); break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd, message, wParam, lParam); } return 0; }
Xbase++
function main() msgbox( "Hallo Welt", "Mein erstes Xbase++ Programm" ) return .T.
Web-Technologien
ASP (Active Server Pages)
<% Response.Write("Hallo Welt!") %>
oder verkürzt
<%="Hallo Welt!"%>
Coldfusion
<cfoutput>Hallo Welt!</cfoutput>
cURL
{curl (Version)applet} Hallo Welt
Java-Applet
Java-Applets funktionieren in Verbindung mit HTML.
Die Java-Datei:
import java.applet.*; import java.awt.*; public class HalloWelt extends Applet { public void paint(Graphics g) { g.drawString("Hallo Welt!", 100, 50); } }
Nachfolgend der Code zum Einbau in eine HTML-Seite.
Vom W3C empfohlen:
<object classid="java:HalloWelt.class" codetype="application/java-vm" width="600" height="100"> </object>
Für Kompatibilität zu sehr alten Browsern (nicht empfohlen):
<applet code="HalloWelt.class" width="600" height="100"> </applet>
JavaScript
JavaScript ist eine Skriptsprache, die insbesondere in HTML-Dateien verwendet wird. Der nachfolgende Code kann in HTML-Quelltext eingebaut werden:
<script type="text/javascript"> alert("Hallo Welt!"); </script>
Oder als direkte Ausgabe:
<script type="text/javascript"> document.write("Hallo Welt!"); </script>
JSP (Java Server Pages)
<% out.print("Hallo Welt!"); %>
oder verkürzt
<%="Hallo Welt!"%>
PHP
<?php echo "Hallo Welt!"; // oder auch print 'Hallo Welt!'; ?>
oder verkürzt
<?="Hallo Welt!"?>
oder (Eigentlich ist der Befehl zum Abbruch des Scripts und nicht für eine reine Ausgabe bestimmt!)
<?php die ('Hallo Welt!'); ?>
Alternativ kann auch PHP beendet werden:
<?php /* Hier Steht Programmcode */ ?> Hallo Welt! <?php /* Hier Steht Programmcode */ ?>
VBScript
<script language="VBScript"> MsgBox "Hallo Welt!" </script>
Visual Basic .NET
Module Main Sub Main() System.Console.WriteLine("Hallo Welt!") End Sub End Module
XUL
<?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <label value="Hallo Welt!"/> </window>
XAML
<?Mapping ClrNamespace="System" Assembly="mscorlib" XmlNamespace="http://www.gotdotnet.com/team/dbox/mscorlib/System" ?> <Object xmlns="http://www.gotdotnet.com/team/dbox/mscorlib/System" xmlns:def="Definition" def:Class="MyApp.Hello"> <def:Code> <![CDATA[ Shared Sub Main() '{ System.Console.WriteLine("Hallo Welt!")' ; '} End Sub ]]> </def:Code> </Object>
Exotische Programmiersprachen
(auch esoterisch genannt)
23
30,14,16,101,16,108,16,32,16,111,16,108,1,12,16,72,16,108,16,111,16,87,16,114,16,100,16,33
Ale
\/>>>>>>\+\<<<\+!\>>\+\<<<<\-\<\-!\>>>\+\<<<\-!!+++!\/\-\/>>>>>\+\<<\+\<\+!---!\>>> \+\>\+\<<<\-\<<<\-!\>>>\-!\<<\+\<\+!\>\-\>\-!\>\-!\/\-/>>>>>\+\<<<<<\+!\/\-\/>>>\+\<<\+!
BDAMD
Anmerkung: Dies gibt "HI" statt "Hallo Welt" aus.
84 > 84 > 84 > 84 > 84 > 84 > 84 > 85 \/ 85 < 86 < 86 < 86 < 86 < 86 < 0E < 66 \/ /\ 84 > 84 > 0C > 8C > E5 > 0F 84 > 85 \/ /\ \/ 85 < 86 < 86 < 3E < 0E 84 > 83 < 86 \/ /\ \/ 84 > 84 > 84 > 84 > 84 > 0F 84 > 85 \/ 00 < 00 < 00 < B6 < 0E < B6 < 0E < 86
Beatnik
Anmerkung: Das folgende Programm gibt "Hi" statt "Hallo Welt" aus.
Baa, badassed areas! Jarheads' arses queasy nude adverbs! Dare address abase adder? *bares baser dadas* HA! Equalize, add bezique, bra emblaze. He (quezal), aeons liable. Label lilac "bulla," ocean sauce! Ends, addends, duodena sounded amends.
Befunge
"!tleW ollaH">,:v ^ _@
Borg
main: "Hallo Welt!\n">out :
Brainfuck
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<< +++++++++++++++.>.+++.------.--------.>+.>.
Eine Erklärung des Programmes findet sich unter Brainfuck#Beispielprogramme in Brainfuck.
Brainfuck2D
Das Programm gibt "Hello World!" aus.
* *0************** * * * * * * *9******************* * * *7*************** * * ** * * * * * * * * * * * * * * * * * **********0* * * * ********** * * * * * * * *44**************************** * * * * * * * * ***********0* * 0 * * * *3*** * * * * * 0 * * * 2 * * * * *7*********** * * * * * * * 0 * * * *4*********** * * * * * * * * * *0**** * * 0 * * * * * * *****************************BRAINFUCK****************************************** * * * * * ********************** * * * * *0*** * ** * * * * * * * * ********************* * * * * * * * * *8**************** * *26**** * * * * * * *0****** * * * * * * * * ** * * * * * * * * * * ** * *4******* * * * * * * * * * * * * * * * * * * * * * * *****0* ***************************** * * * * * * * * * * ******0* * * * * * *92*********** * *3****** * * * * * * * * * ** * * * * * * *0***** * * * * * * 0 * * * ********* * * *5**** * * * * * * 0 *3******** * * * * * * * ************************************************************** * * * * * *****8* * * * 0 * * * ** * * * ** * * ***6* * * * * * * * * ** *0********* * * * * * * * * * * * * * * * * * * ************************************** * * 0 * *91************* *2222***************************** * * * * * *0************************************** * * * * * ** * * * * * * * * * * * * * * * * * * * * * ***** * * *31******* * * * * * * * * *************** * * ***********************
Chef
Hello World Souffle. Ingredients. 72 g haricot beans 101 eggs 108 g lard 111 cups oil 32 zucchinis 119 ml water 114 g red salmon 100 g dijon mustard 33 potatoes Method. Put potatoes into the mixing bowl. Put dijon mustard into the mixing bowl. Put lard into the mixing bowl. Put red salmon into the mixing bowl. Put oil into the mixing bowl. Put water into the mixing bowl. Put zucchinis into the mixing bowl. Put oil into the mixing bowl. Put lard into the mixing bowl. Put lard into the mixing bowl. Put eggs into the mixing bowl. Put haricot beans into the mixing bowl. Liquefy contents of the mixing bowl. Pour contents of the mixing bowl into the baking dish. Serves 1.
Choon
AGb-A#A#+A+%A#DF-AC#
Condit
when a=0 then put "Hallo Welt!" set a=1
Hello
h
Homespring
Universe of bear hatchery says Hallo. Welt!. It powers the marshy things; the power of the snowmelt overrides...
HQ9+
Zweck der Sprache ist vor allem das einfache Schreiben von Hallo-Welt-Programmen.
H
INTERCAL
PLEASE DO ,1 <- #13 DO ,1 SUB #1 <- #238 DO ,1 SUB #2 <- #112 DO ,1 SUB #3 <- #112 DO ,1 SUB #4 <- #0 DO ,1 SUB #5 <- #64 DO ,1 SUB #6 <- #238 DO ,1 SUB #7 <- #26 DO ,1 SUB #8 <- #248 DO ,1 SUB #9 <- #168 DO ,1 SUB #10 <- #24 DO ,1 SUB #11 <- #16 DO ,1 SUB #12 <- #158 DO ,1 SUB #13 <- #52 PLEASE READ OUT ,1 PLEASE GIVE UP
Java2K
Da es sich bei Java2K um eine wahrscheinlichkeitstheoretische Sprache handelt, lässt sich auch nur ein "Wahrscheinlich Hello World" schreiben.
1 1 /125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2 /*/_\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2 /*/_\/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/ _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/ _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/ _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/ _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/ _\/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\ \\\\\\\/*\1 1 /125 /119 /11 6/*/_\/13 2/*/_\\/ 125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\ /125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_ \/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_ \/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_ \/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_ \/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\ \\\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\ \\\\\\\/*\1 1 /125 /131 /119 /125 /11 6/*/_\/_\ /125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/ 125 /13 2/*/_\/_\\\/125 /131 /119 /125 /11 6/*/ _\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/ _\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\ /125 /13 2/*/_\/_\\\\/125 /131 /119 /125 /11 6/ */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/ */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/ */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/ */_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/ _\/125 /13 2/*/_\/_\\\\\\/131 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_ \/125 /13 2/*/_\/_\\\\\\\\\\/*\1 1 /125 /131 / 119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\/125 / 131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/ 131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/ 119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\/ 125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\ \\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\ \\\\\\/*\1 1 /125 /119 /11 6/*/_\/13 2/*/_\\/ 125 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/ 125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\ /125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_ \/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_ \/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\ \\/125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/* /_\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/* /_\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/* /_\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/* /_\/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_ \\\\\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/ _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/ _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/ _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/ _\/_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/ _\/_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\ \\\\\\\\\\\/*\1 1 /125 /131 /119 /125 /11 6/*/_ \/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/ 125 /13 2/*/_\/_\\\/125 /131 /119 /125 /11 6/*/ _\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/ _\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\ /125 /13 2/*/_\/_\\\\/131 /119 /125 /11 6/*/_\/ _\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/ _\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/ _\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/ _\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/ 125 /13 2/*/_\/_\\\\\\\\/*\1 1 /131 /119 /125 / 11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 / 11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 / 11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 / 11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/ */_\/_\/125 /13 2/*/_\/_\\\\\\/*\1 1 /125 / 119 /11 6/*/_\/13 2/*/_\\/125 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/125 /131 /119 /125 / 11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/ */_\/_\/125 /13 2/*/_\/_\\\/125 /131 /119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /125 / 11 6/*/_\/_\/125 /13 2/*/_\/_\\\\\/131 /119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/131 /119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 /125 / 11 6/*/_\/_\/125 /13 2/*/_\/_\\\\\\\\\\\/*\ 1 1 /125 /119 /11 6/*/_\/13 2/*/_\\/125 /119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/125 /131 / 119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\/125 / 131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/ 131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/ 119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\/ 125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\ \\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\ \\\\\\\\/*\1 1 /125 /119 /125 /11 6/*/_\/_\/ 125 /13 2/*/_\/_\\/125 /131 /119 /125 /11 6/*/_ \/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_ \/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_ \/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/ 125 /13 2/*/_\/_\\\\\/125 /131 /119 /125 /11 6/ */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/ */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/ */_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/ */_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/ _\/125 /13 2/*/_\/_\\\\\\/131 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/* /_\/_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_ \/125 /13 2/*/_\/_\\\\\\\\\\/*\1 1 /125 /131 / 119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/119 / 125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\/125 / 131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/ 131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\/ 119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\/ 125 /131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\ /_\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\ \\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/131 /119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/ _\\/119 /125 /11 6/*/_\/_\/125 /13 2/*/_\/_\\\\ \\\\\\/*\1 1 /125 /131 /119 /125 /11 6/*/_\/_\/ 125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/125 / 13 2/*/_\/_\\\/125 /131 /119 /125 /11 6/*/_\/_\ /125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/_\ /125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/_\ /125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\/_\ /125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/ 125 /13 2/*/_\/_\\\\\\/131 /119 /125 /11 6/*/_\ /_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\ /_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\ /_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\ /_\/125 /13 2/*/_\/_\\/131 /119 /125 /11 6/*/_\ /_\/125 /13 2/*/_\/_\\/119 /125 /11 6/*/_\/_\/ 125 /13 2/*/_\/_\\\\\\\\\/*\342//3427/*_/\_
Malbolge
(=<`:9876Z4321UT.-Q+*)M'&%$H"!~}|Bzy?=|{z]KwZY44Eq0/{mlk**hKs_dG5 [m_BA{?-Y;;Vb'rR5431M}/.zHGwEDCBA@98\6543W10/.R,+O<
Microman
Microman ist eine unter Linux geschriebene, speziell für Windows-User entwickelte Skriptsprache.
msn: post-> Hallo Welt
Mouse
"HALLO WELT.!" $$
nouse
#0<a>0:0#0>e>0:0#0>f>0>0:0#0^f>0:0#0+4>0:0#0#h>0:0#0^f>0:0#0<g>0:0#0>f >0:0#0<e>0:0#0?4>0:0#0^1>0:0#0>1>0:0^0
Ook!
Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook.
Oroogu
d / ("Hallo Welt!")
Orthogonal
0 '!' 't' 'l' 'e' 'W' ' ' 'o' 'l' 'l' 'a' 'H' s 0 c 0 ret
Pandora
Hallo Welt forget come from "Hallo" print "Hallo " return come from "Welt" print "Welt!" return
Piet
Bei Piet ist der Quelltext eine Bilddatei im GIF-Format.
reMorse
Beachten Sie, dass dies kein komplettes Hallo-Welt-Programm ist.
- - - ..- ...-.---.;newline - - - .-. - ..-.- ...-. ---.;! - - - ...- . . -.---.;d ----. . . -.---.;l ----. . -...---.;r ----. -...---.;o ----...-.- ..-. ---.;W
RUBE
0a21646c726f77202c6f6c6c6548 , :::::::::::::::::::::::::::: , ) ============================== F O F c =
Sally
sidefxio void main print 'H print 'a print 'l print 'l print 'o print as char 32 print 'W print 'e print 'l print 't print '!
Sansism
G GGG >++++++++++>!+++++++!++++++++++!+++!+##!!!!##-G+G G.+++++++++++++++##!!##.++!.+++..+++++++.+!.++! G G!.+++.------.--------.!+.!.G GG
Shelta
[ `Hallo, _32 `Welt! _13 _10 ] \15 outs \0 halt
SMITH
; Hallo Welt in SMITH - version 2 (loop) ; R0 -> index into string (starts at R10) ; R2 -> -1 MOV R0, 10 MOV R2, 0 SUB R2, 1 MOV R[R0], "Hallo Welt!" MOV TTY, R[R0] SUB R0, R2 MOV R1, R0 SUB R1, 23 NOT R1 NOT R1 MUL R1, 8 COR +1, -7, R1
Toadskin
:V+++++;:XVV;:v-----;:xvv;XXXXXXX++.<XXXXXXXXXX+.V ++..+++.<XXX++.>>XV.XX++++.+++.v-.x++.<XXX+++.<X.>
Unlambda
` ``si`k``s.H``s.a``s.l``s.l``s.o``s. ``s.W``s.e``s.l``s.t``s.!``sri ``si``si``si``si``si``si``si``si`ki
var'aq
Anmerkung: Gibt "Was möchtest du, Universum?" auf Klingonisch aus.
~ nuqneH { ~ 'u' ~ nuqneH disp disp } name nuqneH
*W
Functions: || No functions for this program !! Stuff: 1/Hallo is chrs! 1/Sz, 1/Total are all cplx! Text: || Initialize the data !! Hallo < "Hallo Welt!"! Size Hallo > Sz! Total < 0! || Take the string length and multiply by 100 !! - Size - 0 Total > Total %10000! || Print and delete a character that many times !! & WELT < FCHRS (Hallo)! & Hallo < - Hallo FCHRS (Hallo)! && %Total! || Add a newline !! WELT < nl! :Endtext
Whenever
1 print("Hallo Welt!");
Whitespace
XS
<print>Hallo Welt</print>
ZT - Zer0 Tolerance
48>>>>>ZT>ZT> Hallo | >ZT>>ZT>ZT>ZT Welt!| <<<<65<>6F<>6F<>6C<>>>>> >>>2<>ZT<>ZT<>ZT<>ZT<<<8 ZT<<<<<<6C<>20<>72<>64<< ><ZT<<<<<>ZT<>ZT<>ZT><<5 >>>>ZT><<<<<6C<>57<>ZT<< >>ZT><ZT><<<<<ZT<<ZT><<7 ZT<<21<>ZT><ZT>>ZT<<<<<| ><ZT<>ZT><42<<<<<>ZT by| >>>>ZT><21<>>>> _______| >>>>><ZT<<ZT Wikipedia!| -------EXIT--[ ZT ]----|
Textauszeichnungssprachen
Die folgenden Sprachen sind keine Programmiersprachen, sondern Textauszeichnungssprachen, also Sprachen, mit denen man einen im Computer gespeicherten Text für die Ausgabe auf dem Bildschirm oder mit dem Drucker formatieren kann. Analog zum Hallo-Welt-Programm ist ein Hallo-Welt-Dokument in einer dieser Sprachen ein Beispieldokument, das nur den Text "Hallo Welt" enthält.
Groff
\f(CW Hallo Welt
HTML
Ohne Tag-Auslassung
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Hallo Welt!</title> </head> <body> <p>Hallo Welt!</p> </body> </html>
Mit Tag-Auslassung
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <title>Hallo Welt!</title> <p>Hallo Welt!</p>
Die Auslassung bestimmter Tags (hier: </p>, <html>…</html>, <head>…</head>, <body>…</body>) ist bei HTML formal zulässig, wird jedoch selten benutzt. Bei XML wurde dies abgeschafft, so dass es bei XHTML nicht mehr möglich ist.
XHTML
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Hallo Welt!</title> </head> <body> Hallo Welt! </body> </html>
LaTeX
\documentclass{article} \begin{document} Hallo Welt! \end{document}
PostScript
/Courier findfont 24 scalefont setfont 100 100 moveto (Hallo Welt!) show showpage
RTF
{\rtf1\ansi\deff0 {\fonttbl {\f0 Courier New;}} \f0\fs20 Hallo Welt! }
TeX
\font\HW=cmr10 scaled 3000 \leftline{\HW Hallo Welt} \bye
WikiWiki
Hallo Welt!
Weblinks
- A Tutorial Introduction to the Language B Das erste Auftreten der Wörter „hello“ und „world“ im Kontext einer Programmiersprache (PDF)
- Hello World in 132 Programmier-Sprachen