【发布时间】:2020-02-13 12:24:11
【问题描述】:
我有一个简单的序言程序:
write_manual:-
write('------------------------------'),
write('USAGE MANUAL'),
write('find_course. - List all the available courses'),
write('------------------------------').
% execute this and output this right away when I open the program in the console
有谁知道要做到这一点?我想在程序启动前打印一份简单的帮助手册。目前,swi prolog 控制台(在 Windows 10 上)显示 ?- 提示并要求我
手动调用谓词。我正在使用 SWI-Prolog (threaded, 64 bits, version 8.0.0)。
【问题讨论】:
-
这能回答你的问题吗? How to run SWI-Prolog from the command line?
-
@GuyCoder 无法让
initialization main.工作(没有任何内容输出到 swi 控制台)。我正在使用 swi prolog 控制台(不是 shell)的file > consult选项运行程序。 -
@GuyCoder 查看编辑。是的,我在 Windows 10 上运行
标签: prolog