Ͳ
: ..
2010
1 (2 )
: TurboProlog. .
: TurboProlog, .
: 1. TurboProlog , , , , , . , D:\PROLOG\EXAMPLE.
2. , :
Exampl01:
tom bill?
?
, ?
, eric?
, ?
Exampl02:
: , , ?
, 90000 30000?
?
Exampl05:
alana?
boba?
fay?
, , ?
marilyn?
Exampl06:
.
Exampl07:
. , .
Exampl08:
, .
Exampl10:
5 7.
Exampl18:
, 2 , 1 .
: , ᒺ , clauses , , . , .
:
1. prolog?
2. ?
3. ᒺ Prolog?
4. ᒺ TurboProlog?
5. ? ?
6. ?
7. ?
2 (2 )
: ᒺ . .
: . .
: 1. Exampl13 Exampl17 D:\PROLOG\EXAMPLE. . .
|
|
2. . , , , ?
3. , x =7. .
4. rectangle(P1,P2,P3,P4), P1,P2,P3,P4 , . point(X,Y). regular(R), , R .
:
1. ? .
2. ?
3. TurboProlog?
3 (6 )