#!/bin/sh
echo Hello World!
2011. szept. 24.
Common Lisp Hello World!
Suppose a function foo writes to standard output:
(defun foo () (format t "Hello, world"))
To capture its output in a character string, *standard-output* can be bound to a string stream and called:
(with-output-to-string (*standard-output*) (foo))
(defun foo () (format t "Hello, world"))
To capture its output in a character string, *standard-output* can be bound to a string stream and called:
(with-output-to-string (*standard-output*) (foo))
COMAL Hello World!
PRINT "Hello World!"
Cola Hello World!
string mesg = "Hello world\n";
main() {
print(mesg);
}
Labels:
CLR,
Cola,
Hello World,
Microsoft .NET,
Parrot virtual machine
Corba Hello World!
class Hello
def main
print 'Hello, World'
Labels:
Corba,
dynamic,
Hello World,
inferred,
Microsoft .NET,
Mono,
multi-paradigm,
object-oriented,
static,
strong
CobolScript Hello World!
* "Hello world" program
*
DISPLAY `Content-type: text/html`.
DISPLAY LINEFEED.
DISPLAY ``.
DISPLAY `Hello World `.
DISPLAY `
Labels:
CobolScript,
FreeBSD,
Linux,
Microsoft Windows,
scripting,
SunOS
Clojure Hello World!
(println "Hello, world!")
Labels:
Clojure,
dynamic,
functional,
multi-paradigm,
strong
CLIST Hello World!
PROC 0
WRITE HELLO WORLD!
Clean Hello World!
module hello
Start :: {#Char}
Start = "Hello, world!"
Labels:
Clean,
dynamic,
functional,
static,
strong
2011. jún. 27.
Hello World Oxygene!
namespace ConsoleApplication1;
uses System.Linq;
type ConsoleApp = class public class method Main; end;
class method ConsoleApp.Main; begin Console.WriteLine('Hello World.'); end; end.
Hello World Charm!
ext proc write_string (ref array char); module hello_world; ent proc start (); write_string ("Hello world"); end_proc; end_module;
Labels:
Charm,
Hello World,
Structured programming
Hello World Caml!
print_endline "Hello world!";;
Labels:
Caml,
functional,
Hello World,
imperative,
multi-paradigm,
object-oriented
Hello World C/AL!
MESSAGE('hello, world');
Hello World Boo!
print "Hello, world!"
Hello World Batch!
@ECHO off ECHO Hello World! PAUSE @ECHO on
Hello World BASIC
PRINT "Hello World"
Labels:
BASIC,
Hello World,
procedural,
unstructured
Hello World Bash!
echo "Hello World!"
2011. jún. 24.
Hello World AWK!
BEGIN { print "Hello, world!" }
Labels:
AWK,
event-driven,
Hello World,
procedural,
scripting
Hello World AutoIt!
; Displays "Hello, world!" in a MsgBox and exits. MsgBox(0, "Title", "Hello, world!") Exit
Hello World Ateji PX!
public class HelloWorld { public static void main(String[] args) { [ || System.out.println("Hello World"); ] } }
Hello World ABAP!
REPORT TEST. WRITE 'Hello World'.
Hello World Arc!
(prn "Hello, World")
2011. jún. 17.
Hello World Ada!
with Ada.Text_IO; use Ada.Text_IO; procedure Hello is begin Put_Line("Hello, world!"); end Hello;
Hello World AMPLE!
/* A simple Hello World Example */ function hello() { // Single Line output $writeln("Hello World !"); }
2011. jún. 16.
Hello World ActionScript 3.0
package com.example { import flash.text.TextField; import flash.display.Sprite; public class Greeter extends Sprite { public function Greeter() { var txtHello:TextField = new TextField(); txtHello.text = "Hello World"; addChild(txtHello); } } }
2011. jún. 15.
Hello World Android!
HelloWorld.java
package com.android.test;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
public class HelloWorld extends Activity
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
public class HelloWorld extends Activity
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button button = (Button) findViewById(R.id.Button01);
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(HelloWorld.this, "Hello World", Toast.LENGTH_SHORT).show();
}
});
}
}
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button button = (Button) findViewById(R.id.Button01);
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(HelloWorld.this, "Hello World", Toast.LENGTH_SHORT).show();
}
});
}
}
main.xml
<?xml version="1.0" encoding="utf-8"?><linearlayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<button android:text="Click Me"
android:id="@+id/Button01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></Button>
</LinearLayout>
Hello World Pascal!
program HelloWorld; begin writeln('Hello World'); end.
C# Hello World
using System; public class Hello { public static int Main(string[] args) { Console.WriteLine("Hello, World!"); return 0; } }
Hello World C++
#include <iostream>
using namespace std;
void main()
{
cout << "Hello World!" << endl;
{
cout << "Hello World!" << endl;
}
Hello World C
#include <stdio.h> int main()
{ printf("Hello World\n"); return 0; }
Hello World Java
class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}
System.out.println("Hello World!");
}
}
Feliratkozás:
Bejegyzések (Atom)