2013-05-10 81 views
0

這個非常簡單的Prolog比如從我的研究材料,給我一個「操作員預計」錯誤:序言「運營商預期的錯誤」謂詞命令序列

greet(alice):- 
     write(‘How are you doin, pal?’). 
greet(bob):- 
     write(‘Awfully nice to see you!’). 

的我缺少的是什麼?

+1

請問你的源代碼實際上包含「和」? – 2013-05-10 20:37:08

回答

3

就像在評論中提到@larsman,替代'

greet(alice):- 
     write('How are you doin, pal?'). 
greet(bob):- 
     write('Awfully nice to see you!').