这段代码是可以正常运行的,可能是其他地方出现了语法错误导致报错。建议检查一下其他代码部分,或者尝试重新编译运行。

import std.stdio;
import std.string;
import core.stdc.stdio;

void main()
{
    mixin(format!('printf("%s", %s);', __traits(getMember, &puts, "mangleof"), 'Hello, world!
'));
}
Dlang 代码报错: 'End of File' 错误解决方法

原文地址: https://www.cveoy.top/t/topic/n1NS 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录