我正在尝试从D(编程语言)/d2/Hello, World 中获取 hello, world 程序!在 codepad.org 上工作。这是我的代码:
/* This program prints a
hello world message
to the console. */
import std.stdio;
void main()
{
writeln("Hello, World!");
}
这是我在http://codepad.org/MdLVQEMm运行它时得到的输出:
Line 9: Error: undefined identifier writeln
Line 9: Error: function expected before (), not writeln of type int
关于我做错了什么的任何想法?我几乎只是复制/粘贴代码..