Sign in Join
Wiki copytemporary

Basic Pascal Tutorial/Hello, World/ja

Sent here from Hello, World/ja.

한국어 · Deutsch · English · Español · Français · Italiano · Svenska · Български · Русский · العربية · 中文(中国) · 日本語

Hello, World (著者: Tao Yue, 状態: 変更なし)

コンピュータープログラミングの短い歴史の中で、ひとつの長く続いている伝統に新たな言語における最初のプログラムは「Hello World」をスクリーンに表示させることというのがある。だから、それをやってみよう。以下のプログラムをコピーし、IDE あるいはテキストエディタにペーストしよう。それからコンパイルして走らせてみよう。

これをどうやるか見当がつかないのなら、内容目次に戻ろう。前のほうのレッスンでコンパイルとは何かを説明し、ダウンロードできるコンパイルへのリンクを示した。そしてウインドウ上にオープンソースの Pascal コンパイラをインストールするやり方を示している。

program Hello; begin

text
 writeln ('Hello, world.')

end.

画面への出力は次のように見えるはずである。

Hello, world.

もし、IDE 上でプログラムを走らせているなら、プログラムが一瞬走るのを目にしたら何が起こったのかを知る前に IDE に戻ってしまうかもしれない。どうしてこうなるかは前のレッスンの最後を見てください。ひとつの示唆された解決策は、プログラムが終了する前にエンターキーを押すのを待つように「Hello World」プログラムを次のように変更することである。

program Hello; begin

text
 writeln ('Hello, world.');
 readln

end.

previous contents next

From the Free Pascal wiki, page "Basic Pascal Tutorial/Hello, World/ja", as it stood on 2022-08-20 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 3, last changed by WikiArchive .

Edited on wiki.freepascal.org by 3 people, 2015–2022

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
DerakunCreated page
Derakun
FTurtleadded template for language bar and categories
Derakun
Kai BurghardtKai Burghardt moved page Hello, World/ja to Basic Pascal Tutorial/Hello, World/ja: tidy up main name space: create subpage hierarchy for basic Pascal tutorial [cf. [[Special: PermaLink/149778#Clutteri... (minor)
Kai Burghardtbypass redirects [cf. discussion]
Kai Burghardtbypass [previously missed] redirect [cf. discussion]
Kai Burghardtbypass language bar/categorization template redirect [cf. discussion] (minor)

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.