Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
can';I don’你好,世界计划开始运作了_D_Codepad - Fatal编程技术网

can';I don’你好,世界计划开始运作了

can';I don’你好,世界计划开始运作了,d,codepad,D,Codepad,我正在尝试让hello,world程序在codepad.org上运行。这是我的密码: /* This program prints a hello world message to the console. */ import std.stdio; void main() { writeln("Hello, World!"); } 以下是我在以下位置运行时得到的输出: 你知道我做错了什么吗?我几乎只是复制/粘贴了代码。从他们的代码中,codepad.org使用的是D版

我正在尝试让hello,world程序在codepad.org上运行。这是我的密码:

/* This program prints a
   hello world message
   to the console.  */

import std.stdio;

void main()
{
    writeln("Hello, World!");
}
以下是我在以下位置运行时得到的输出:

你知道我做错了什么吗?我几乎只是复制/粘贴了代码。

从他们的代码中,codepad.org使用的是D版本1.026,它是。当前版本为2.074.1,仅供参考


现代的D代码不太可能与这么旧的D版本一起工作,尤其是在一次大版本的升级之后。您必须使用不同的服务和更新的工具。

用于由最新编译器支持的联机编辑器。

您尝试过其他环境吗?我不知道D,但这听起来像是一个愚蠢的缓存错误。如果您使用的是IDE,它会告诉您清除其缓存。也许可以清除浏览器缓存?代码在上面运行。您是否特别需要使用codepad.org,还是可以使用其他编译器?我确认代码是正确的,问题是特定于codepad的。org@JGreenwell-那很有帮助-谢谢!
Line 9: Error: undefined identifier writeln
Line 9: Error: function expected before (), not writeln of type int