Thank you a lot for your answer.
You right, oh predicate takes 2 parameters, like in: oh(0, 1).
I put the code into SWI-Prolog and wanted compile - it wrote:
% Scanning references for 1 possibly undefined predicates
and could you please send me whats is doing?
1) :- dynamic(node/1).
2) \+...
I am newie in Prolog, could you please someone help me?
Assignment:
At the entry is given a chart with list of their edges. Write a program in Prolog, which prints a list of all nodes. / / also with inputs for command line
oh (0.1).
oh (0.2).
oh (2.3).
oh (2.4).
oh (3.4).
oh (4.5).
So...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.