"Hello World" in jeder Programmiersprache

Wagen wir ein Experiment und versuchen in jede Programmariersprache den Text "Hello World" auszugeben:)

Ich fange mit Python an

den folgenden Text in eine Datei speichern z.B. hello_world.py und mit dem Python Interpreter aufrufen:

python hello_world.py

print 'Hello World!'

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Profile picture for user Guest
Permanenter Link

Hello World in Lotusscript wäre:

Hier wird Lotus Domino Designer benötigt. Man erstellt eine Schaltfläche in einer Maske, Seite oder Ansicht und hinter der Schaltfläche ruft ein (Agent)Programm auf:
@Command([ToolsRunMacro]; "Mein Agent")
Nun erstellt man ein Agent(mein Agent) in der Lotus Datenbank und fügt folgende Code rein:
Sub Initialize Print "Hello World" End Sub
wenn man die Ausgabe als MessageBox haben möchte, dann:
Sub Initialize MessageBox("Hello World") End Sub
Über die Schaltfläche kann man nun Agent aufrufen.

Profile picture for user Guest
Permanenter Link

Und "Hello World" in HTML wäre:
Hello World Hello World
Diese Code kann man in Text-Editor hinzufügen und als HelloWorld.htm abspeichern.

Profile picture for user Guest
Permanenter Link

der Code ist falsch, richtiger wäre es:
#include

int main(void)
{
printf("Hello, World\n");

return 0;
}

unter hello.c speichern und und unter Linux mit

gcc -o hello hello.c

kompilieren und mit dem Befehl ./hello ausführen. Falls hello nicht ausführbar, mit dem Befehl die Rechte setzen und nochmal probieren chmod a+x hello

Unter Windows kannst du Bloodshed Dev C++ oder Visual Studio installieren.

Profile picture for user Guest
Permanenter Link

Hello World in Assembler /(MASM32)

MASM32 herunterladen und nach C:\masm32 entpacken

.386 .model flat, stdcall option casemap :none include \masm32\include\windows.inc include \masm32\include\kernel32.inc include \masm32\include\user32.inc includelib \masm32\lib\kernel32.lib includelib \masm32\lib\user32.lib

.data
HelloTitle db "MessageBox Title", 0
HelloText db "Hello World!", 0

.code

begin:
invoke MessageBox, NULL, addr HelloText, addr HelloTitle, MB_OK

invoke ExitProcess, 0
end begin

Den Code oben als winbox.asm in den Ordner C:\masm32\ speichern und mit den folgenden Befehlen kompilieren.

C:\masm32>ml /c /coff winbox.asm Microsoft (R) Macro Assembler Version 6.14.8444 Copyright (C) Microsoft Corp 1981-1997. All rights reserved.

Assembling: winbox.asm

***********
ASCII build
***********

C:\masm32>link /subsystem:windows /LIBPATH:c:\masm32\lib winbox.obj
Microsoft (R) Incremental Linker Version 5.12.8078
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.

C:\masm32>winbox.exe

Komisch, dass hier noch keiner Hello Word in Java gepostet hat obwohl das wohl das meistbenutzte sein wird.. :-P

Naja, dann mal Hello World in Java:

public class HelloWorld {

     public static void main(String[ ] args) {

         System.out.println("Hello World!"); 

     }

 }

Suche

Neueste Kommentare

  • 1 day 12 hours ago
    Warning: Undefined array key "url" in Drupal\Core\Asset\CssCollectionOptimizerLazy->optimizeGroup()
    Warning: Undefined array key "url" in Drupal\Core\Asset\JsCollectionOptimizerLazy->optimizeGroup() 
  • 3 days 13 hours ago
    Server install & config : Debian 12 + Plesk + Apache + nginx + MariaDB + Solr
    sudo timedatectl set-timezone Europe/Berlin
  • 1 week 3 days ago
    Warning: PHP Startup: Unable to load dynamic library 'apcu.so' ... cannot open shared object file: No such file or directory

    Try this:

  • 3 weeks 2 days ago
    List Cronjobs for all users (via for + crontab)

    Alternative (without warnings like "no crontab for dovecot") to see all tasks:

  • 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

    php 8.3 apcu failed

    über Plesk hat es geklappt.

     

  • 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

     

    install:

    # sudo apt install php-dev
    
  • 3 weeks ago
    pecl install apcu : phpize: not found / ERROR: `phpize' failed

    phpize

    # sudo apt install php-dev
    

     

    details

  • 3 weeks ago
    Install APCu (PHP 8.1, Plesk)

    Problem:

  • 2 months 1 week ago
    Install APCu (PHP 8.1, Plesk)

    Problem:

  • 3 months 2 weeks ago
    Linux mv: das Verschieben von 'new' nach 'old' ist nicht möglich: Das Verzeichnis ist nicht leer

    Hilft "cp -avf old new && rm -rvf old" nicht?