hello world
さまざまな言語で "hello world"
Ada
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!
D
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!