Code Archive Skip to content Google About Google Privacy Terms
Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org. Welcome to dsource.org This site serves as an open source community for the D Programming Language. Our goal is to provide an environment conducive to open-source development, including forums, source-code control, bug-tracking, and distribution. To further knowledge of program
2008-10-01 wiki%2525C6%2525FE%2525CC%2525E7 2008-08-03 BugTrack BugTrack/30 2008-07-26 FAQ 2008-06-27 BugTrack/29 2008-05-22 D 2.0 2008-04-25 他言語との比較2 2008-04-13 雑談 2008-04-12 リンク集 インストール 2008-04-07 MenuBar 2008-03-31 std.math2 2008-03-03 D言語BOF 2008-03-01 D言語BOF/Walterだけど何か質問ある? 2008-02-23 エスケープシークエンス比較表 2008-02-20 D 1.0 FrontPage 2008-02-18 ニュース 最新のDMD 2008-02-11 newsgroupウォッチング [ANN] 2008 年 3 月
Hello, world! † まずはこれを書かないと始まらないのです.標準出力に"Hello, world!"と出力するプログラム. import std.stdio; int main(char[][] args) { writef("Hello, world!\n"); return 0; } 実行結果 Hello, world! #includeの代わりにimportでモジュールを読み込み プリプロセッサはない Cと同じくmain関数がプログラムのエントリポイント mainの引数はchar[][](文字列の配列)が使える.他にもいろいろある void main() int main() writefで標準出力に文字列を出力 printfも使用可能(何もimportしなくても使えた) ↑ 標準入出力とif † 今度は標準入出力に std.cstream モジュールを使ってみます. i
はじめに 2012年5月現在、最近、このページはあまり更新できていません。すみません m(_ _)m。 D言語友の会 が、長期間ちゃんと更新されている D 言語関係の日本語サイトとしておすすめです。 こんにちは。ここは、プログラミング言語 D (D Programming Language, 通称D言語)を紹介するサイトです。 すでに Java など一般的なプログラミング言語の経験がある読者を前提として書かれています。 一部古いページを除いて、基本的に、D 2.x 系統の言語仕様をベースに解説しています。 → 更新情報は RSS で 目次 1. Dってどんな言語? サンプルコード色々 D言語を大きくカテゴライズすると、「C風の構文を備えた」 「静的型」の「ネイティブコンパイル」言語と いうことになります。オブジェクト指向やテンプレートメタプログラミングなど、 幾つかのパラダイムをサポートし
Overview GDC is a D language front end for the GNU Compiler Collection. It supports a number of targets and nearly all features of Digital Mars D. New Home for GDC Development GDC development continues at a new location. Links The D Programming Language D Links Page The D.gnu newsgroup For general D discussion, the digitalmars.D and digitalmars.D.bugs newsgroups The GNU Compiler Collection Mac OS
#!/usr/bin/rdmd // Computes average line length for standard input. import std.stdio; void main() { ulong lines = 0; double sumLength = 0; foreach (line; stdin.byLine()) { ++lines; sumLength += line.length; } writeln("Average line length: ", lines ? sumLength / lines : 0); } Standard input Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris tristique rutrum sem, nec convallis enim bibe
#!/usr/bin/rdmd // Computes average line length for standard input. import std.stdio; void main() { ulong lines = 0; double sumLength = 0; foreach (line; stdin.byLine()) { ++lines; sumLength += line.length; } writeln("Average line length: ", lines ? sumLength / lines : 0); } Standard input Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris tristique rutrum sem, nec convallis enim bibe
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く