Hallo-Welt-Programm
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 einfachsten möglichen zeigen, was für ein vollständiges Programm (in der betreffenen 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 natürlich 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)
REPORT Z_HALLO_WELT. WRITE 'Hallo Welt!'.
trace('Hallo Welt');
with Ada.Text_IO; procedure Hallo is begin Ada.Text_IO.Put_Line ("Hallo Welt!"); end Hallo;
Für eine Erkärung des Programmes siehe wikibooks:Programming:Ada:Basic.
'BEGIN' OUTSTRING(2,'('HALLO WELT')'); 'END'
'Hallo Welt!'
MOV DX, OFFSET HW MOV AH, 09H INT 21H MOV AX, 4C00H INT 21H HW DB 'Hallo Welt!$'
# 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
680x0-CPU, Amiga, Atari ST/Atari TT
; Getestet mit AMS-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)
BEGIN { print "Hallo Welt!" }
main() { printf("Hallo Welt"); }
echo Hallo Welt
Traditionelles, unstrukturiertes BASIC:
10 PRINT "Hallo Welt!" 20 END
GET "LIBHDR" LET START () BE $( WRITES ("Hallo Welt!*N") $)
print("Hallo Welt!");
print "Hallo Welt!"
print "Hallo Welt!"
#include <stdio.h> int main(void) { printf("Hallo Welt!"); return 0; }
Siehe auch: Hallo-Welt-Programm in C, Varianten der Programmiersprache C
#include <iostream> int main() { std::cout << "Hallo Welt!" << std::endl; return(0); }
int main() { System::Console::WriteLine("Hallo Welt!"); }
using System; namespace bsp_01_hallowelt { class MainClass { public static void Main() { Console.WriteLine("Hallo Welt!"); } } }
namespace Hallo; interface implementation method Main; begin Console.WriteLine('Hallo Welt!'); end.
(write-line "Hallo Welt!")
? "Hallo Welt!"
PROC main() WriteF('Hallo Welt!') ENDPROC
in der Variante tdbengine:
module helloworld procedure Main cgiclosebuffer cgiwriteln("content-type: text/html") cgiwriteln("") cgiwriteln("Hallo Welt!") endproc
class HALLO_WELT create make feature make is do io.put_string("Hallo Welt!%N") end end
Emacs Lisp
(print "Hallo Welt")
-module(Hallo). -export([Hallo_Welt/0]). Hallo_Welt() -> io:fwrite("Hallo Welt!\n").
: halloforth ( -- ) ." Hallo Welt!" ;
PROGRAM HALLO PRINT *, "Hallo Welt!" END PROGRAM
main = putStrLn "Hallo Welt!"
"Hallo Welt" print
Iptscrae
ON ENTER { "Hallo " "Welt!" & SAY }
WriteLn("Hello World"); DebugBreak;
public class Hallo { public static void main(String[] args) { System.out.println("Hallo Welt!"); } }
print "Hallo Welt!"
print [Hallo Welt!]
"Hallo Welt!"
alternativ:
echo "Hallo Welt!"
oder:
[System.Console]::WriteLine("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
/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 auszugebende Zeichenkette (#a ist ein Zeilenumbruch und 0 schließt die Zeichenkette ab) Main GETA $255,string Adresse der Zeichenkette in Register 255 ablegen TRAP 0,Fputs,StdOut Zeichenkette, auf die mit Register 255 verwiesen wird in Datei StdOut ausgeben TRAP 0,Halt,0 Prozess beenden
@echo Hallo Welt!
W "Hallo Welt",!
WRITE 'Hallo Welt' * END
MODULE HalloWelt; IMPORT Write; BEGIN Write.Line("Hallo Welt!"); END HalloWelt.
print_endline "Hallo Welt!"
void main() { puts ("Hallo Welt!"); }
program HalloWelt; {$APPTYPE CONSOLE} begin writeln('Hallo Welt!'); end.
-- Signatur und Implementation sind eigentlich zwei Dateien Signature HelloWorld
FUN Hello : denotation
Implementation HelloWorld
FUN Hello : denotation DEF Hello == "Hallo Welt!\n"
PROC Hallo: PRINT "Hallo Welt!" ENDP
program Hallo ( output ); begin writeln('Hallo Welt!') end.
begin writeln('Hallo Welt!'); end.
print 'Hallo Welt!';
int main() { write("Hallo Welt!\n"); return 0; }
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!"); }
Test: procedure options(main); put skip list("Hallo Welt!"); end Test;
BEGIN DBMS_OUTPUT.PUT_LINE('Hallo Welt!'); END;
?- write('Hallo Welt!'), nl.
- In der Konsole
OpenConsole() Print("Hallo Welt!") CloseConsole()
- Im Dialogfenster
MessageRequester("Hallo Welt","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
print "Hallo Welt!"
Gibt folgendes aus: [1] "Hallo Welt!"
print ("Hallo Welt!")
echo 'Hello World' end
/* Hallo-Welt in REXX */ say "Hallo Welt!"
- 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
<< "Hallo Welt!" 1 Disp>>
puts "Hallo Welt!"
(display "Hallo Welt!") (newline)
Benötigt mindestens eine Zeile als Eingabe:
sed -ne '1s/.*/Hallo Welt!/p'
Transcript show: 'Hallo Welt!'
print "Hallo Welt!\n"
OUTPUT = "Hallo Welt!" END
STARLET
RACINE: HELLO_WORLD. NOTIONS: HELLO_WORLD : ecrire("Hallo Welt!").
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
puts "Hallo Welt!"
TI-BASIC
:Disp "Hallo Welt!"
Turing
put "Hallo Welt!"
echo 'Hallo Welt!'
begin echo("Hallo Welt!"); end;
Imports System Module Main Sub Main() Console.WriteLine("Hallo Welt!") End Sub End Module
Grafische Benutzeroberflächen – als traditionelle Anwendungen
display dialog "Hallo Welt!"
#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::slot(*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; }
#include <qapplication.h> #include <qpushbutton.h> int main( int argc, char **argv ) { QApplication a( argc, argv ); QPushButton hallo( "Hallo Welt!", 0 ); hallo.resize( 100, 30 ); a.setMainWidget( &hallo ); hallo.show(); return a.exec(); }
public class HalloWelt { public static void Main() { System.Windows.Forms.MessageBox.Show("Hallo Welt!"); } }
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)
program HalloWelt; uses Dialogs; begin ShowMessage('Hallo Welt!'); end; end.
in der Variante VDP:
module helloworld procedure Main Message("Hallo Welt!") endproc
PUBLIC SUB Form_Enter() PRINT "Hallo Welt" END
- 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 { public HelloWorld() { super("Hallo Welt!"); JLabel halloWeltLabel = new JLabel("Hallo Welt!"); getContentPane().add(halloWeltLabel); setDefaultCloseOperation(EXIT_ON_CLOSE); setResizable(false); setLocation(350, 320); setSize(160, 60); setVisible(true); } public static void main(String[] args) { new HelloWorld(); } }
(alert "Hallo Welt!")
Profan² / XProfan²
Messagebox("Hallo Welt","",0)
oder
Print "Hallo Welt" WaitKey End
oder
shell getenv$("COMSPEC")+" /k @echo Hallo Welt"
PureBasic
MessageRequester("","Hallo Welt")
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"]
MsgBox "Hallo Welt!"
MessageBox.Show("Hallo Welt!")
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> 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; }
Web-Technologien
<% Response.Write("Hallo Welt!") %>
oder verkürzt
<%="Hallo Welt!"%>
<cfoutput>Hallo Welt!</cfoutput>
{curl (Version)applet} Hello world
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 ist ein 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>
<% out.print("Hallo Welt!") %>
oder verkürzt
<%="Hallo Welt!"%>
<?php echo "Hallo Welt!"; ?>
oder verkürzt
<?= "Hallo Welt!" ?>
<script language="VBScript"> MsgBox "Hallo Welt!" </script>
<?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>
<?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
4DL
Siehe [1] für ein Hallo-Welt-Programm in 4DL.
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
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.
"!tleW ollaH">,:v ^ _@
Borg
main: "Hallo Welt!\n">out :
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<< +++++++++++++++.>.+++.------.--------.>+.>.
Eine Erklärung des Programmes findet sich unter Brainfuck#Beispielprogramme in Brainfuck.
Informationen zur "Abart" von Brainfuck sind unter [2] erhältlich. 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******* * * * * * * * * *************** * * ***********************
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
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. Internetseite HQ9+
H
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
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/*_/\_
(=<`:9876Z4321UT.-Q+*)M'&%$H"!~}|Bzy?=|{z]KwZY44Eq0/{mlk**hKs_dG5 [m_BA{?-Y;;Vb'rR5431M}/.zHGwEDCBA@98\6543W10/.R,+O<
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. Ooook?
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
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
: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!");
Unter der Adresse http://compsoc.dur.ac.uk/whitespace/hworld.ws findet sich ein "Hallo Welt" Programm in Whitespace.
XS
<print>Hallo Welt</print>
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. (Allerdings kann man PostScript und TeX durchaus auch als vollwertige Programmiersprachen ansehen.) Analog zum Hallo-Welt-Programm ist ein Hallo-Welt-Dokument in einer dieser Sprachen ein Beispieldokument, das nur den Text "Hallo Welt" enthält.
\f(CW Hallo Welt
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <title>Hallo Welt!</title> <p>Hallo Welt!</p>
\documentclass[a4paper]{article} \usepackage{german} \begin{document} Hallo Welt! \end{document}
/Courier findfont 24 scalefont setfont 100 100 moveto (Hallo Welt!) show showpage
{\rtf1\ansi\deff0 {\fonttbl {\f0 Courier New;}} \f0\fs20 Hallo Welt! }
\font\HW=cmr10 scaled 3000 \leftline{\HW Hallo Welt} \bye
Hallo Welt!
Weblinks
- A Tutorial Introduction to the Language B Das erste Auftreten der Wörter „hello“ und „world“ im Kontext einer Programmiersprache (PDF)
- Eine weitere Liste von "Hallo Welt!" Programmen
- 99 Bottles Of Beer: Eine Liste mit über 850 Beispielprogrammen für die Ausgabe des gleichnamigen Liedes
- Hello World in 132 Programmier-Sprachen
- Sammlung mit über 200 Programmen sowie "Hallo Welt" in einigen menschlichen Sprachen
- Hello, World Page! Beinhaltet mehrere der oben genannten Beispielcodes