home > 基礎編 >

ForNext

Shut the fuck up and write some code

hello world

VBScript

JScript

Perl

PHP

Python

Ruby

PowerShell

Scala

F#

C

#include <stdio.h>
int main(int argc, char **argv) {
    printf("Hello World\n");
}

C++

#include <iostream>
using namespace std;
int main(int argc, char**arg) {
    cout << "Hello World" << endl;
}

C++Builder

VC++

C#

using System.Console;
public class Hello {
    public static void Main() {
        WriteLine("Hello World");
    }
}

Java

public class Hello {
    public static void main(String[] args) {
        System.out.println("Hello World");
    }
}

Objective-C

更新日 : 2011.02.19
#import <stdio.h>
#import <objc/Object.h>

int main() {
    printf("Hello Objective-C!\n");

    return 0;
}
xxxxx@yyyyy ~
$ gcc lesson001.m -o lesson001 -lobjc

xxxxx@yyyyy ~
$ ./lesson001.exe
Hello Objective-C!

D

更新日 : 2011.02.19
import std.stream;
int main(char[][] args)
{
    stdout.writeLine("Hello D!");
    return 0;
}
xxxxxx@yyyyyy ~
$ gdc -o hellod hellod.d

xxxxxx@yyyyyy ~
$ ./hellod
Hello D!

VB

VB.NET

Delphi

Ada

更新日 : 2011.02.19
with Text_IO;
use  Text_IO;
procedure Hello is
begin
    Put_Line ("Hello Ada!");
end Hello;
xxxxxx@yyyyyy ~
$ gnatmake helloada.adb
gcc -c helloada.adb
gcc -c -I./ -I- /usr/lib/gcc/i686-pc-cygwin/4.3.4/adainclude/text_io.ads
gnatbind -x helloada.ali
gnatlink helloada.ali

xxxxxx@yyyyyy ~
$ ./helloada
Hello Ada!

PL/SQL

T-SQL

関数型

inserted by FC2 system