在第一个回答之后,Prolog 显示错误“char_code/2:由于 'character_code'而无法表示"; [英] After the first answer, Prolog shows the error "char_code/2: Cannot represent due to 'character_code'"
本文介绍了在第一个回答之后,Prolog 显示错误“char_code/2:由于 'character_code'而无法表示";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
一般情况下,如果有的话,我们可以使用";"
来显示下一个答案.
但如果我这样做,它会告诉我
In normal situation, we can use ";"
to show the next answer if there is one.
But if I do this, it shows me
error: char_code/2: Cannot represent due to 'character_code'
代替";"
,我使用"shift + ;"
,prolog给了我一个提示
In stead of ";"
, I use "shift + ;"
, and prolog gives me a prompt
Unknown action: : (h for help) Action?
那么如果我输入";"
,指定的答案会一一显示.
then if I input ";"
, the designable answers will be shown one by one.
有什么问题?
推荐答案
用swipl-win.exe代替swipl.exe可以解决这个问题.(我试过6.x和7.x)
Use swipl-win.exe instead of swipl.exe can solve this problem.(I tried 6.x and 7.x)
顺便说一下,swipl 在 MacOS 下运行良好.
By the way, swipl works well under MacOS.
这篇关于在第一个回答之后,Prolog 显示错误“char_code/2:由于 'character_code'而无法表示";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文