so how should I write it? The problem is because I have "os" for a laptop and for a desktop
so
os(jacobsdesktop, windows).
and
os(jacobslaptop, mac).
how would I write it?
what's wrong here?
os(jacobsdesktop, windows).
I'm getting an error:
* clauses for user:os/2 are not together
I also tried:
os(X, windows) :- jacobsdesktop(X).
but getting the same error :S
any ideas?
thanks, just one more question
I have:
memory(laptop, 512mb).
and it gives me syntax error.... looks like it doesn't like the numbers, is there any way to have "512mb" or do I have to write it as a word?
getting this error:
| ?- Computer(X) :- Mac(X).
! Syntax error
! operator expected after expression
! in line 20
! Computer
! <<here>>
! ( X ) :- Mac ( X ) .
| ?-
any ideas what's wrong?
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.