Running prolog SWI on windows 8 for the first time.
this is my program (.pl) file, very basic just with 3 facts: (I'm a complete prolog beginner)
hello.
a.
b.
When I load it (consult) in prolog-SWI, and work with the program, I get this error in my output:
12 ?- b.
true.
13 ?- a.
true.
14 ?- c.
ERROR: toplevel: Undefined procedure: c/0 (DWIM could not correct goal)
Now if that is a simple error because c was never stated in the program as a fact then that is fine, but after looking at the examples online and the ones I had found in class Prolog in these examples replies yes when a fact is in the program, and no when it is not. Mine replies true if it is, and gives me that long error if it is not.
See this link for example
Where is replies no for foggy.