D 언어 홈페이지는 http://www.digitalmars.com/d/index.html 이다.

컨솔에 문자 출력하는 D 언어 구문은  C 언어의 것과 같다.

       printf(format,  ...);

 
소스 파일명: hello.d
------------------------------[소스 시작]
import std.c.stdio;

int main (string[] args) {
    printf("Hello, world!\n");
    return 0;
}
------------------------------[소스 끝]


컴파일> dmd hello.d

실행> hello
Hello, world!



Posted by Scripter
,