Re: Simply Expert System for Visual Prolog
- From: metah <bisgmbh@xxxxxxxxxxx>
- Date: Tue, 28 Jun 2005 17:12:19 +0200
Hi,
the problem is, I cannot make my visual prolog to read any chars from the keybord (it reads but I can't work with that)
example in PIE:
dupa():- write("Yes or No ? "),
repeat,
readchar(Char),
(
member(Char,[`y,`Y]), Answer = yes ;
member(Char,[`n,`N]), Answer = no
),
write(Answer),nl.it doesn't work - if I press Y or y / N or n - I become no results - I should get "YES" or "NO".
Why?
thx
----------- y Trace: >> RETURN: readchar(y) Trace: >> CALL: member(y,[y,Y]) Trace: >> FAIL: member(y,[y,Y]) Trace: >> CALL: member(y,[n,N]) Trace: >> FAIL: member(y,[n,N]) Trace: >> REDO: readchar(y) Trace: >> FAIL: readchar(_) Trace: >> CALL: readchar(_)
-------------
Duncan Patton wrote:
I don't have any Turbo Prolog code around any more, but that's what you need to
look for. There's a whole bunch of examples came with the releases and these should work under VP with minor modification.
Dhu
On Sun, 26 Jun 2005 18:24:50 +0200 metah <bisgmbh@xxxxxxxxxxx> wrote:
Hi,
does anybody know, where could I download a simple expert system for Visual Prolog? Some Rules, Some Questions and then one Solution - thats it.
I have downloaded some systems, but they don't work under visual prolog.
Thanks
metah
metah@xxxxxxxxxxxxxxxxx
.
- Follow-Ups:
- Re: Simply Expert System for Visual Prolog
- From: Duncan Patton
- Re: Simply Expert System for Visual Prolog
- References:
- Simply Expert System for Visual Prolog
- From: metah
- Re: Simply Expert System for Visual Prolog
- From: Duncan Patton
- Simply Expert System for Visual Prolog
- Prev by Date: Re: SWI Prolog qsave_program/2 win/unix trouble
- Next by Date: Re: SWI Prolog qsave_program/2 win/unix trouble
- Previous by thread: Re: Simply Expert System for Visual Prolog
- Next by thread: Re: Simply Expert System for Visual Prolog
- Index(es):
Relevant Pages
|
|