📄 ch06ex04.pro
字号:
/*
Turbo Prolog 2.0 Chapter 6, Example Program 4
Copyright (c) 1986, 88 by Borland International, Inc
*/
domains
articles = book(title, author) ;
horse(name) ; boat ;
bankbook(balance)
title, author, name = symbol
balance = real
predicates
owns(name,articles)
clauses
owns(john, book("A friend of the family", "Irwin Shaw")).
owns(john, horse(blacky)).
owns(john, boat).
owns(john, bankbook(1000)).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -