在第一个答案之后,Prolog 显示错误“char_code/2: Cannot representation due to 'character_code'"; [英] After the first answer, Prolog shows the error "char_code/2: Cannot represent due to 'character_code'"

查看:6
本文介绍了在第一个答案之后,Prolog 显示错误“char_code/2: Cannot representation due to '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'

我用";"代替";",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: Cannot representation due to 'character_code'";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆