Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是erlang的初学者。请帮我运行一个erlang程序。
在命令行中,我使用了这个 -c(main).创建了一个梁文件。现在我该如何运行程序。我在窗户上。
c(main).
% this is the hello world program I am trying to run -module(main). -export([start/0]). start() -> io:fwrite("Hello, world!\n").
非常感谢任何帮助。
谢谢
你写的是一个模块。如果已编译,则必须调用此模块的函数进行评估。在运行 Erlang Emulator(erl) 的同一命令提示符下执行以下操作...
Eshell V11.1.7 (abort with ^G) 1> main:start(). Hello, world! ok 2>