that have simple and big example with explain not just code
books on visual prolog.com website is not helpful ,it do not have example ,till now i still do not know how to build a full prj ,
and how to test a function that is determ multi nondeterm ,
Code: Select all
predicates
fun(a,b)determ (i,o)
goal
myfunc::fun(a,b)
how and why
another problem
use function as varible
i guess it may be ,pls right the right code
DOMAINS
Code: Select all
predicates
usefunc(string word,function func{T1,T2})
clauses
do:-
readln(word )
readln(A,B)
usefunc(word,func{T1,T2})
word = update %means if word is update it will call update function
func(A,B) % IF word is delete mean it will call delete function