开博第一天

希望以后每天都能写点东西

先贴个Erlang的Hello World程序吧,摘自《Programming Erlang》

 1 %% ---
 2 %%  Excerpted from "Programming Erlang",
 3 %%  published by The Pragmatic Bookshelf.
 4 %%  Copyrights apply to this code. It may not be used to create training material, 
 5 %%  courses, books, articles, and the like. Contact us if you are in doubt.
 6 %%  We make no guarantees that this code is fit for any purpose. 
 7 %%  Visit http://www.pragmaticprogrammer.com/titles/jaerlang for more book information.
 8 %%---
 9 -module(hello).
10 -export([start/0]).
11 
12 start() ->
13     io:format("Hello world~n").
posted @ 2012-09-20 16:53  CJ_Ruan  阅读(205)  评论(0编辑  收藏  举报